mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-21 11:23:24 +02:00
The pgoutput module uses a global variable (publish_no_origin) to cache the action for the origin filter, but we didn't reset the flag when shutting down the output plugin, so subsequent retries may access the previous publish_no_origin value. We fix this by storing the flag in the output plugin's private data. Additionally, the patch removes the currently unused origin string from the structure. For the back branch, to avoid changing the exposed structure, we eliminated the global variable and instead directly used the origin string for change filtering. Author: Hou Zhijie Reviewed-by: Amit Kapila, Michael Paquier Backpatch-through: 16 Discussion: http://postgr.es/m/OS0PR01MB571690EF24F51F51EFFCBB0E94FAA@OS0PR01MB5716.jpnprd01.prod.outlook.com |
||
---|---|---|
.. | ||
binary.sql | ||
ddl.sql | ||
decoding_in_xact.sql | ||
decoding_into_rel.sql | ||
messages.sql | ||
permissions.sql | ||
prepared.sql | ||
replorigin.sql | ||
rewrite.sql | ||
slot.sql | ||
spill.sql | ||
stats.sql | ||
stream.sql | ||
time.sql | ||
toast.sql | ||
truncate.sql | ||
twophase_stream.sql | ||
twophase.sql | ||
xact.sql |