aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-11-10 13:12:58 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-11-10 13:13:04 -0500
commitc3b33698cf88550b017620f73b94b53029897f39 (patch)
treea8a3d22931fa960cf84c20d6718a48c3a2c4f1f0 /src
parent10eae82b27cebbb9586cda8baf8e3226496891d0 (diff)
downloadpostgresql-c3b33698cf88550b017620f73b94b53029897f39.tar.gz
postgresql-c3b33698cf88550b017620f73b94b53029897f39.zip
Doc: improve protocol spec for logical replication Type messages.
protocol.sgml documented the layout for Type messages, but completely dropped the ball otherwise, failing to explain what they are, when they are sent, or what they're good for. While at it, do a little copy-editing on the description of Relation messages. In passing, adjust the comment for apply_handle_type() to make it clearer that we choose not to do anything when receiving a Type message, not that we think it has no use whatsoever. Per question from Stefen Hillman. Discussion: https://postgr.es/m/CAPgW8pMknK5pup6=T4a_UG=Cz80Rgp=KONqJmTdHfaZb0RvnFg@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/worker.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c
index 0bd5d0ee5e0..ae1b391bdae 100644
--- a/src/backend/replication/logical/worker.c
+++ b/src/backend/replication/logical/worker.c
@@ -1496,7 +1496,10 @@ apply_handle_relation(StringInfo s)
/*
* Handle TYPE message.
*
- * This is now vestigial; we read the info and discard it.
+ * This implementation pays no attention to TYPE messages; we expect the user
+ * to have set things up so that the incoming data is acceptable to the input
+ * functions for the locally subscribed tables. Hence, we just read and
+ * discard the message.
*/
static void
apply_handle_type(StringInfo s)