Logical Replication - Type messages?
Stefen Hillman <stefen.hillman@fivetran.com>
From: Stefen Hillman <stefen.hillman@fivetran.com>
To: pgsql-general@lists.postgresql.org
Date: 2021-11-08T19:16:57Z
Lists: pgsql-general
Hello psql-general, I have an application which processes logical replication output from a PostgreSQL server. We create publications and read data from a replication slot with the pgoutput plugin. Postgres has various message formats for logical replication, as defined here: https://www.postgresql.org/docs/10/protocol-logicalrep-message-formats.html Currently, I process Relation messages to get most of the information I need to work with Inserts, Updates, and Deletes. However, for type information I'm currently using a SQL query to get the column type information. I wanted to use the Type messages, but I never see them. I see Begin, Commit, etc. but never Type. - When are the Type messages generated and sent by the server? - Is there a way to cause them to be generated? - Are these type id > type mappings set in stone, or does PostgreSQL allow for a server to have custom types (I notice that namespace is one of the properties sent with the types)? Any help is greatly appreciated - thank you! Best regards, Stefen Hillman
Commits
-
Doc: improve protocol spec for logical replication Type messages.
- c3b33698cf88 15.0 landed
- fcfb40dcc131 10.20 landed
- f4ab856e5d50 11.15 landed
- 886801df4a23 12.10 landed
- 78f058411b02 13.6 landed
- 74da4c71d6b1 14.2 landed