| From: | shveta malik <shveta(dot)malik(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>, shveta malik <shvetamalik(at)gmail(dot)com> |
| Subject: | Re: Preserve conflict log table during upgrade |
| Date: | 2026-12-01 05:49:55 |
| Message-ID: | CAJpy0uCADgijxi_TJQOWB7KLipVRNieGcahdbhNY=1KQsYbDyA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Tue, Dec 1, 2026 at 9:55 AM shveta malik <shveta(dot)malik(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
> >
>
> Thanks for the patch. Below are a few comments. I will verify the
> patch a bit more in sometime.
>
I verified a bit more. Once concern:
$ ./pg_dump -d postgres -t pg_conflict.pg_conflict_log_16390 -p 5434
pg_dump: error: no matching tables were found
$ ./pg_dump -d postgres -n pg_conflict -p 5434
pg_dump: error: no matching schemas were found
$ ./pg_dump -d postgres -t pg_conflict.pg_conflict_log_16390
--binary-upgrade -p 5434
pg_dump: error: no matching tables were found
$ ./pg_dump -d postgres -n pg_conflict --binary-upgrade -p 5434
pg_dump: error: no matching schemas were found
All these commands report that no matching table or schema was found,
although both exist, and that is why the user is trying to select them
in the first place. The error is misleading.
So either we stop filtering them out in the queries of
expand_table_name_patterns() and expand_schema_name_patterns(), and
instead skip them while processing the results, with a WARNING (e.g.
"ignoring conflict log table ... as it can only be dumped by
pg_upgrade"), or we at least mention it in the doc, just briefly:
... pg_dump does not dump its conflict log table or its contents, and
neither the table nor the pg_conflict schema can be selected with -t
or -n.
Since the code change to emit the warning could be tricky, we can at
least go with the doc change. Thoughts?
thanks
Shveta
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chao Li | 2026-12-01 05:51:18 | Re: Should we add timing output to pg_upgrade? |
| Previous Message | Peter Smith | 2026-12-01 05:47:06 | Re: [PATCH] Report changes discarded for relations not in the subscription |