Re: Preserve conflict log table during upgrade

From: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>
To: 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 05:32:36
Message-ID: CANhcyEVOZ6YpFDFdb=f3Q407ubQRE5U4_uc_QjzC_ys3LpVcDA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 30 Nov 2026 at 16:07, vignesh C <vignesh21(at)gmail(dot)com> wrote:
>
> Here is a rebased version, the v3 version patch also addresses Ajin's
> comments from [1] and Kuroda-san's comments from [2].
> [1] - https://www.postgresql.org/message-id/CAFPTHDZkvegyxt_P%3DtYqjKmUNHhRcGcgvQ-rE7oFr%3Dx2qCPtxQ%40mail.gmail.com
> [2] - https://www.postgresql.org/message-id/OS7PR01MB18317D4778448CA0BE8AE2B2CF54E2%40OS7PR01MB18317.jpnprd01.prod.outlook.com
>
Hi Vignesh,

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?

Thanks,
Shlok Kyal

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zhijie Hou 2026-12-01 05:41:15 Re: update_deleted lookup assumes heap tuple slots
Previous Message Ideriha, Takeshi 2026-12-01 05:23:28 Re: [PATCH] pgcrypto: Fix sha-crypt rounds= values that do not fit in int (BUG #19743)