05 SQL statement execution process parsing 1 - query analysis and optimization rewriting

sql execution statement flow analysis The whole processing flow is in exec_simple_query function. The code structure is as follows: /* * exec_simple_query * * Execute a "simple Query" protocol message. */ static void exec_simple_query(const char *query_string) { ... //Original syntax tree acquisition /* * Do basic parsing of the quer ...

Posted by refiking on Sat, 04 Dec 2021 04:35:19 +0100

High availability | repmgr build PostgreSQL high availability cluster deployment document [recommended collection]

Author: Yanbo Qingyun technology database R & D EngineerAt present, he is engaged in the development of PostgreSQL products and is keen on the study and research of PostgreSQL databaseLast issue We introduced the PG cluster replication management tool repmgr, which can easily build a highly available cluster of PostgreSQL. After the primary ...

Posted by moriman on Fri, 03 Dec 2021 09:52:27 +0100

Easily complete a distributed transaction TCC with Java, and automatically handle null compensation, suspension, idempotent, etc

What is TCC? TCC is the abbreviation of Try, Confirm and Cancel. It was first proposed by a paper entitled Life beyond Distributed Transactions:an Apostate's Opinion published by Pat Helland in 2007.TCC compositionTCC is divided into three stagesTry phase: try to execute, complete all business checks (consistency), and reserve necessary busines ...

Posted by tlawless on Mon, 29 Nov 2021 03:46:04 +0100

Tool | one SQL to realize PostgreSQL data retrieval

Author: Zhang Lianzhuang, PostgreSQL R & D Engineer He has been engaged in the development of PostgreSQL database kernel for many years and has a very in-depth research on citus. Recovering lost data quickly is an important functional requirement of the database. It is generally recommended to use the tools recommended by the official. For ...

Posted by WM_Programmer_noob on Wed, 24 Nov 2021 11:01:12 +0100

Remember to empty the gitlab code warehouse and restore the disk again

preface The story happened on a dark and windy night. An unusual phone call came and said that the business was in a hurry to go online, but their API package could not be uploaded to the company's maven private library. The leader asked me to support and see how to solve it. After years of unreliable intuition, the disk should be full. So he ...

Posted by akrytus on Tue, 02 Nov 2021 10:10:37 +0100

Log mining method of Henkel database

catalogue environment Document purpose detailed information environment System platform: Linux x86-64 Red Hat Enterprise Linux 7 Version: 4.3.4.7 Document purpose This paper mainly introduces how to mine the database wal log through walminer, including the installation and use of wal. detailed information 1, Introduction to walminer 1. Brief ...

Posted by masgas on Tue, 02 Nov 2021 02:58:22 +0100

Build a misskey instance

Decentralized open source social platform – misskey I can't bear to see the leaders deploy mammoths. In fact, I also want to have my own district centered social platform... hmmm, but mammoths eat too much memory. Is there a better source program? So I found this high color value and low occupancy program misskey on github ##Program int ...

Posted by saltwater on Sun, 26 Sep 2021 12:10:45 +0200

Use the Canal ClientAdapter to synchronize the DDL and DML of Mysql to PostgreSQL

1. Description The description of each component is shown in the table below: assemblyeditionThe serverInstallation tutorialeffectcanal1.1.5canal1, canal2, canal3canal HA installation + mysql multi node automatic switchingzookeeper3.6.3canal1, canal2, canal3zookeeper fully distributed installationmysql8.0.25canal1, canal2MySQL master mast ...

Posted by jalperin on Fri, 24 Sep 2021 00:36:17 +0200

Introduction to temporary tablespaces of PostgreSQL and Greenplum

The temporary tablespace of PostgreSQL, through the parameter temp_tablespaces are configured. PostgreSQL allows users to configure multiple temporary tablespaces. When configuring multiple temporary tablespaces, use commas to separate them. If temp is not configured_ Tablespaces parameter. The temporary tablespace corresponds to the default ...

Posted by ajdegans on Fri, 26 Jun 2020 04:42:55 +0200

Spring Boot: integrate basic operations of JPA and MyBatis

PostgreSQL is an object relational database management system (ORDBMS) of free software with complete characteristics. It is an object relational database management system based on POSTGRES, version 4.2 developed by the computer department of the University of California. Many of the leading concepts ...

Posted by buducom on Thu, 25 Jun 2020 10:26:30 +0200