mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
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
This commit is contained in:
@ -578,7 +578,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)
|
||||
|
Reference in New Issue
Block a user