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 06:21:59
Message-ID: CANhcyEVfZE=0JfhZ=JqLNuzXSzyqpTz2q2v_yXuO9RLyNoisoQ@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].

I noticed that we can create views on Conflict log tables.
For normal pg_dump, these views are dumped before the CREATE
SUBSCRIPTION command.
So, when we try to restore from such dumps, it can error out with
'relation "pg_conflict.pg_conflict_log_16385" does not exist'
Is this behaviour expected?

Even if we correct the ordering, the subscription oid might not be
preserved in pg_dump. And the same error can occur.
Maybe we should not dump such views in non binary-upgrade pg_dump?

Thanks,
Shlok Kyal

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2026-12-01 06:22:00 Re: GetNewOidWithIndex() can reuse a TOAST value ID while its chunks are still in the heap
Previous Message Henson Choi 2026-12-01 06:05:03 Speed up tuplestore_seek() by starting from the nearest known position