| From: | Zhijie Hou <houzhijie22(at)gmail(dot)com> |
|---|---|
| To: | Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com> |
| Cc: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Preserve conflict log table during upgrade |
| Date: | 2026-12-01 08:12:47 |
| Message-ID: | 586f4833-fb0c-4e99-ae01-64667a0da94c@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On Tue, Dec 1, 2026 at 01:32 PM Shlok Kyal wrote:
> I have a doubt: I see that normal pg_dump does not dump Privileges on
> pg_conflict
> schema (for example: REVOKE USAGE ON SCHEMA pg_conflict FROM PUBLIC;
> is not dumped). But a similar change for pg_catalog schema is dumped
> for normal pg_dump.
>
> Also docs says the privileges for conflict table is not restored: ```
> Privileges, comments and security labels that had been set on the old
> conflict log table are not restored, and must be set again on the new
> table if needed. ``` But it does not mention anything regarding
> pg_conflict schema. Is this behaviour expected? If so, does it make
> sense to document it?
I think it would be unnecessary to dump the ACLs of the pg_conflict
schema alone, given that we don't dump the ACLs of the conflict log
tables anyway. This is also consistent with pg_toast and
information_schema, so I think we can extend the document as follows:
Privileges, comments and security labels that had been set on the old
conflict log table or on the <literal>pg_conflict</literal> schema are
not restored, and must be set again after the restore if needed.
--
Best Regards,
Zhijie Hou
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zsolt Parragi | 2026-12-01 08:16:24 | Re: Reapply graceful socket shutdown on Windows (revert 29992a6a509) |
| Previous Message | Henson Choi | 2026-12-01 08:06:08 | Re: Row pattern recognition |