Avoid errors during ALTER SUBSCRIPTION.

Jeff Davis <jdavis@postgresql.org>

Commit: e5c40584a712e8f8c6bd9a7a87bdb855cfd2f20b
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2026-06-17T22:34:07Z
Avoid errors during ALTER SUBSCRIPTION.

Previously, when retrieving the old Subscription object, constructing
the conninfo could encounter an error during
ForeignServerConnectionString(). ACL errors were handled properly, but
other errors could interfere with a user fixing the problem with ALTER
SUBSCRIPTION.

Reported-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/D908370F-2695-4231-851D-17179A6A6F2A@gmail.com

Files

Discussion