summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorAmit Kapila2023-09-13 04:04:30 +0000
committerAmit Kapila2023-09-13 04:04:30 +0000
commitf062cddafe6b3dcb6d090111c7cd4afa0c7fa4b3 (patch)
tree8c378d8be146bf1e07bf0af6e257e34282071bea /src/backend
parent3acd0599bd8e18ae831d1cc86b687453fdbd424a (diff)
Fix the ALTER SUBSCRIPTION to reflect the change in run_as_owner option.
Reported-by: Jeff Davis Author: Hou Zhijie Reviewed-by: Amit Kapila Backpatch-through: 16 Discussion: http://postgr.es/m/17b62714fd115bd1899afd922954540a5c6a0467.camel@j-davis.com
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/commands/subscriptioncmds.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c
index 34d881fd94f..6fe111e98d3 100644
--- a/src/backend/commands/subscriptioncmds.c
+++ b/src/backend/commands/subscriptioncmds.c
@@ -1204,6 +1204,13 @@ AlterSubscription(ParseState *pstate, AlterSubscriptionStmt *stmt,
= true;
}
+ if (IsSet(opts.specified_opts, SUBOPT_RUN_AS_OWNER))
+ {
+ values[Anum_pg_subscription_subrunasowner - 1] =
+ BoolGetDatum(opts.runasowner);
+ replaces[Anum_pg_subscription_subrunasowner - 1] = true;
+ }
+
if (IsSet(opts.specified_opts, SUBOPT_ORIGIN))
{
values[Anum_pg_subscription_suborigin - 1] =