From: | Artur Zakirov <zaartur(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter(at)eisentraut(dot)org>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: pg_dump crash on identity sequence with not loaded attributes |
Date: | 2024-12-11 11:38:59 |
Message-ID: | CAKNkYnyet7hCwhhaaZE_7fBGCc9S6Xa9d4_Yy4YWqspdR9x4Sw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Tue, 10 Dec 2024 at 22:15, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Yeah. After chewing on this for awhile, I think the cleanest solution
> is say that b965f2617 was just wrong, and we should revert it in
> favor of adopting this logic:
>
> if (seqinfo->is_identity_sequence)
> seqinfo->dobj.dump = owning_tab->dobj.dump;
> else
> seqinfo->dobj.dump |= owning_tab->dobj.dump;
Thank you for the new version of the patch. It looks good to me and it
works as expected after I tested it.
> The attached patch also gets rid of the dubious coding in
> getPublicationNamespaces. We might get push-back on that ignoring
> schemas belonging to extensions, but if so I'd prefer to see the
> behavior coded in a more transparent fashion.
I don't have a strong opinion about this part and I'm not sure that we
need to ignore mapping between a namespace and a publication if the
namespace belongs to the extension. Maybe we could always dump the
mapping if the publication itself is dumped.
But other than that it seems the patch breaks dumps of mapping of a
publication with the public namespace. The issue with the public
namespace is mentioned in the original thread of the feature of adding
schema mapping [1]. I couldn't find in the thread if it was addressed
in the end. With the new patch the following mapping won't be mapped:
create publication pub_test for tables in schema public;
pg_dump won't generate corresponding "ALTER PUBLICATION pub_test ADD
TABLES IN SCHEMA public".
--
Kind regards,
Artur
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2024-12-11 13:32:41 | Re: BUG #18146: Rows reappearing in Tables after Auto-Vacuum Failure in PostgreSQL on Windows |
Previous Message | Tom Lane | 2024-12-11 02:43:18 | Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres' |