Re: Skipping schema changes in publication - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Skipping schema changes in publication
Date
Msg-id CAA4eK1LoAqAkLqAM1C=LV1LcacPR-4pe58AZYOAp9F8c+fYKnw@mail.gmail.com
Whole thread
In response to Re: Skipping schema changes in publication  (vignesh C <vignesh21@gmail.com>)
Responses Re: Skipping schema changes in publication
List pgsql-hackers
On Mon, Mar 9, 2026 at 8:22 AM vignesh C <vignesh21@gmail.com> wrote:
>
> The attached v59 patch has the changes to update the syntax accordingly.
>

Creation of FOR ALL TABLES publications requires superuser privileges.
See following code in CreatePublication()

---
/* FOR ALL TABLES and FOR ALL SEQUENCES requires superuser */
if (!superuser())
{
if (stmt->for_all_tables || stmt->for_all_sequences)
ereport(ERROR,
errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
errmsg("must be superuser to create a FOR ALL TABLES or ALL SEQUENCES
publication"));
}
---

Similarly, won't altering them also require the superuser privilege? I
don't see the corresponding code in the patch.

--
With Regards,
Amit Kapila.



pgsql-hackers by date:

Previous
From: Nisha Moond
Date:
Subject: Re: Skipping schema changes in publication
Next
From: wenhui qiu
Date:
Subject: Re: Convert NOT IN sublinks to anti-joins when safe