File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,17 @@ with its usage.
6868## About Postgres Wire Protocol
6969
7070Postgres Wire Protocol is a relatively general-purpose Layer-7 protocol. There
71- are 3 parts of the protocol:
71+ are 6 parts of the protocol:
7272
7373- Startup: client-server handshake and authentication.
7474- Simple Query: The text-based query protocol of postgresql. Query are provided
7575 as string, and server is allowed to stream data in response.
7676- Extended Query: A new sub-protocol for query which has ability to cache the
7777 query on server-side and reuse it with new parameters. The response part is
7878 identical to Simple Query.
79+ - Copy: the subprotocol to copy data from and to postgresql.
80+ - Replication
81+ - Logical Replication
7982
8083Also note that Postgres Wire Protocol has no semantics about SQL, so literally
8184you can use any query language, data formats or even natural language to
@@ -84,6 +87,9 @@ interact with the backend.
8487The response are always encoded as data row format. And there is a field
8588description as header of the data to describe its name, type and format.
8689
90+ [ Jelte Fennema-Nio] ( https://github.com/JelteF ) 's on talk on PgConf.dev 2024 has
91+ a great coverage of how the wire protocol works:
92+ https://www.youtube.com/watch?v=nh62VgNj6hY
8793
8894## Usage
8995
You can’t perform that action at this time.
0 commit comments