postgresql/src/include/replication
Tom Lane 50371df266 Don't try to print data type names in slot_store_error_callback().
The existing code tried to do syscache lookups in an already-failed
transaction, which is problematic to say the least.  After some
consideration of alternatives, the best fix seems to be to just drop
type names from the error message altogether.  The table and column
names seem like sufficient localization.  If the user is unsure what
types are involved, she can check the local and remote table
definitions.

Having done that, we can also discard the LogicalRepTypMap hash
table, which had no other use.  Arguably, LOGICAL_REP_MSG_TYPE
replication messages are now obsolete as well; but we should
probably keep them in case some other use emerges.  (The complexity
of removing something from the replication protocol would likely
outweigh any savings anyhow.)

Masahiko Sawada and Bharath Rupireddy, per complaint from Andres
Freund.  Back-patch to v10 where this code originated.

Discussion: https://postgr.es/m/20210106020229.ne5xnuu6wlondjpe@alap3.anarazel.de
2021-07-02 16:04:54 -04:00
..
backup_manifest.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
basebackup.h Code review for server's handling of "tablespace map" files. 2021-03-17 16:18:46 -04:00
decode.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
logical.h Revert recovery prefetching feature. 2021-05-10 16:06:09 +12:00
logicallauncher.h Allow multiple xacts during table sync in logical replication. 2021-02-12 07:41:51 +05:30
logicalproto.h Allow pgoutput to send logical decoding messages. 2021-04-06 08:40:47 +05:30
logicalrelation.h Don't try to print data type names in slot_store_error_callback(). 2021-07-02 16:04:54 -04:00
logicalworker.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
message.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
origin.h Add some const decorations 2021-06-10 16:21:48 +02:00
output_plugin.h Add a xid argument to the filter_prepare callback for output plugins. 2021-03-30 10:34:43 +05:30
pgoutput.h Allow pgoutput to send logical decoding messages. 2021-04-06 08:40:47 +05:30
reorderbuffer.h Fix decoding of speculative aborts. 2021-06-15 08:28:36 +05:30
slot.h Return ReplicationSlotAcquire API to its original form 2021-06-11 15:48:26 -04:00
snapbuild.h Avoid repeated decoding of prepared transactions after a restart. 2021-03-01 09:11:18 +05:30
syncrep.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
walreceiver.h Add condition variable for walreceiver shutdown. 2021-03-12 19:45:42 +13:00
walsender.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
walsender_private.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
worker_internal.h Rename the logical replication global "wrconn" 2021-05-12 19:13:54 -04:00