Alter all tables in schema owner fix

From: vignesh C <vignesh21(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, houzj(dot)fnst(at)fujitsu(dot)com
Subject: Alter all tables in schema owner fix
Date: 2021-12-03 03:06:23
Message-ID: CALDaNm0E5U-RqxFuFrkZrQeG7ae5trGa=xs=iRtPPHULtT4zOw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Currently while changing the owner of ALL TABLES IN SCHEMA
publication, it is not checked if the new owner has superuser
permission or not. Added a check to throw an error if the new owner
does not have superuser permission.
Attached patch has the changes for the same. Thoughts?

Regards,
Vignesh

Attachment Content-Type Size
v1-0001-Fix-for-new-owner-of-ALL-TABLES-IN-SCHEMA-publica.patch text/x-patch 4.9 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2021-12-03 03:37:38 Re: pg_get_publication_tables() output duplicate relid
Previous Message Alexander Lakhin 2021-12-03 03:00:00 Re: More time spending with "delete pending"