PostgreSQl 12 master-slave stream replication and archiving configuration
WeChat official account: operation and development story, author: Jiang Zong
Hello, I'm Xiao Jiang. A low-level operation and maintenance engineer.
The previous article talked about the source code deployment of PostgreSQl 12. Here we talk about the master-slave stream replication and archiving configuration of PostgreSQl 12.
Two forms of ...
Added by private_guy on Wed, 19 Jan 2022 14:12:29 +0200
Learning and using psql database
catalogue
0 psql introduction
2.3 console commands
2.5 database import and export
2.6 problem solving
3.API usage
3.0 libpqxx compilation
3.2 connection examples
3.3 creating an example
3.4 added examples
3.5 selection examples
3.6 modification example
3.7 delete example
5. Reference:
0 psql introduction
In d ...
Added by wilsonodk on Wed, 19 Jan 2022 10:33:38 +0200
PostgreSQL mistakenly deleted PG_ filenode. What about map
Today, I saw someone on the Internet asking me to delete PG by mistake_ filenode. How to restore or rebuild a map? Let's learn about PG before solving this problem_ filenode. Map file.
For each table in PostgreSQL, there are files related to it on disk, and the name of these files is relfilenode. We can use pg_class to query the relfilenode fi ...
Added by chadowch on Tue, 18 Jan 2022 18:16:07 +0200
Postgresql gossip 05 - JSON and JSONB types in Postgresql
1, JSON and JSONB
Compared with other relational databases, Postgresql has a great advantage in that it has built-in many special data types, such as inet and MAC. The json and json types introduced in this paper are also two unique data types of Postgresql. In fact, their essence is to store data in jon format, However, the difference is that ...
Added by The Chancer on Tue, 18 Jan 2022 07:42:43 +0200
PostgreSQL architecture
1. Concept combing
1.1 PostgreSQL database file composition:
Physical file
It consists of a series of physical files located on the operating system, which are usually called databases.
Logical file
During the operation of the database, these physical files are managed through a complete set of efficient and rigorous ...
Added by iyia12co on Mon, 17 Jan 2022 09:19:37 +0200
PGSQL protocol parsing and C/C + + code implementation
PostgreSQL uses message based protocols to communicate between the front end and the back end (client and server). T port number 5432 is registered with IANA as the preferred TCP port number of servers supporting this protocol, but actually any non privileged port number can be used.
What is PostgreSQL?
PostgreSQL, also known as Postgres, is ...
Added by podarum on Sun, 16 Jan 2022 17:47:02 +0200
PostgreSQL generates RESTful artifact PostgREST
When we want to operate on the client side of PostgreSQL, we need to access the database from the remote end. At this time, PostgreSQL artifact PostgREST can be launched. PostgREST is a server that can help us generate a series of restful APIs for operating PostgreSQL databases. I also tried to use NGX in Nginx directly before_ The Postgres mod ...
Added by thepip3r on Sun, 16 Jan 2022 15:42:53 +0200
Installing and deploying databases on CentOS using virtual machines
For image download, domain name resolution and time synchronization, please click Alibaba cloud open source mirror
This section describes the basic operations of using a database. This section enables you to create a database, create a table, insert data into the table, and query the data in the table.
2.1 preconditions
● openGauss operates ...
Added by Kestrad on Thu, 13 Jan 2022 04:49:54 +0200
Postgresql gossip 13 - BRIN index in Postgresql
1, BRIN index principle
In this article, we will continue to learn another characteristic index in Postgresql - BRIN index. BRIN index is the abbreviation of Block Range Index. It groups the blocks of data on the disk according to a certain number, which can be determined by the parameter pages when creating BRIN_ per_ Range. The default value ...
Added by akaki on Sun, 02 Jan 2022 22:41:58 +0200
Algorithm idea and implementation of XIRR function in financial industry, java/plsql
I Introduction to internal rate of return (IRR)
The Internal Rate of Return (IRR) is when NPV (net present value) is equal to zero Discount rate . To calculate the internal rate of return, several discount rates are used for trial calculation until the discount rate with net present value equal to or close to zero is found. Internal rate of r ...
Added by sqishy on Sat, 25 Dec 2021 00:45:40 +0200