Check retain_dead_tuples for ALTER SUBSCRIPTION ... SERVER.

Previously, the subscription setting retain_dead_tuples didn't cause
ALTER SUBSCRIPTION ... SERVER to check the publisher. And if the
publisher was checked for some other reason, then it would use the old
conninfo.

Fix ALTER SUBSCRIPTION ... SERVER to always check the publisher when
retain_dead_tuples is set, and to use the new connection info, like
ALTER SUBSCRIPTION ... CONNECTION.

Reviewed-by: Chao Li <[email protected]>
Discussion: 
https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8eba2edb80102ac7d16c0335caca62e11adc8072

Modified Files
--------------
src/backend/commands/subscriptioncmds.c | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)

Reply via email to