mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
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
This commit is contained in:
@ -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] =
|
||||
|
Reference in New Issue
Block a user