Fix changing the ownership of ALL TABLES IN SCHEMA publication.
authorAmit Kapila <akapila@postgresql.org>
Wed, 8 Dec 2021 06:01:16 +0000 (11:31 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 8 Dec 2021 06:01:16 +0000 (11:31 +0530)
commit1a2aaeb0db1bccd97140d479c4247127f6cb9378
treed78e7e44a44d0e963e1bdf89ee91d9b322d5b18c
parenta61bff2bf479cfebda18a1655323eec1b19370de
Fix changing the ownership of ALL TABLES IN SCHEMA publication.

Ensure that the new owner of ALL TABLES IN SCHEMA publication must be a
superuser. The same is already ensured during CREATE PUBLICATION.

Author: Vignesh C
Reviewed-by: Nathan Bossart, Greg Nancarrow, Michael Paquier, Haiying Tang
Discussion: https://postgr.es/m/CALDaNm0E5U-RqxFuFrkZrQeG7ae5trGa=xs=iRtPPHULtT4zOw@mail.gmail.com
src/backend/catalog/pg_publication.c
src/backend/commands/publicationcmds.c
src/include/catalog/pg_publication.h
src/test/regress/expected/publication.out
src/test/regress/sql/publication.sql