Re: ALTER DEFAULT PRIVILEGES IN SCHEMA pg_conflict silently has no effect

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: shveta malik <shveta(dot)malik(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, shveta malik <shvetamalik(at)gmail(dot)com>
Subject: Re: ALTER DEFAULT PRIVILEGES IN SCHEMA pg_conflict silently has no effect
Date: 2026-12-03 06:23:05
Message-ID: CAA4eK1+vBjsoa82pup_UcxJ_i5pWg3MbzjmsJm=2x3ZWOBXk7g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Dec 3, 2026 at 11:41 AM shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
>
> Okay, I see your concern. How about:
>
> The conflict log table is owned by the subscription owner. To allow
> other roles to access it, privileges on it must be granted with GRANT;
> default privileges set with ALTER DEFAULT PRIVILEGES are not applied
> to it. Only the system can add or change rows in the table, so
> granting INSERT or UPDATE has no effect. Granting SELECT, DELETE or
> TRUNCATE allows other roles to read or remove rows. Privileges granted
> on the table are lost if the table is dropped, for example when
> conflict_log_destination is changed to log; they must be granted again
> if the table is re-created by changing the option back to table or
> all.
>
> <Improved the last sentence too.>
>

The last line was good as is. I mean no need for :"they must be
granted again if the table is re-created by changing the option back
to table or all.". That part is implicit. Other than that your
proposed text looks good to me.

--
With Regards,
Amit Kapila.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message solai v 2026-12-03 06:33:41 Re: [PATCH] Improve tab completion for CREATE DOMAIN without AS
Previous Message Prashant Chinnam 2026-12-03 06:15:34 Re: [PATCH] pgcrypto: Fix sha-crypt rounds= values that do not fit in int (BUG #19743)