pg_dump assertion failure with "-n pg_catalog"

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: pg_dump assertion failure with "-n pg_catalog"
Date: 2023-06-07 17:36:29
Message-ID: ce071503fee88334aa70f360e6e4ea14d48305ee.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On version 15 or later:

pg_dump -n pg_catalog postgres > /dev/null
pg_dump: pg_dump.c:13291: dumpCollation: Assertion `collcollate !=
((void *)0)' failed.

Patch attached.

I tried adding a test, but dumping pg_catalog seems to only be
supported for research purposes, so it's not clear what the test should
be testing.

If we went almost two release cycles without anyone noticing, then
perhaps we should just get rid of the ability to dump pg_catalog. But I
think the attached patch clarifies things regardless.

--
Jeff Davis
PostgreSQL Contributor Team - AWS

Attachment Content-Type Size
0001-Fix-pg_dump-assertion-failure-when-dumping-pg_catalo.patch text/x-patch 1.9 KB

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David Rowley 2023-06-07 22:18:36 Re: BUG #17967: [msvc-x86] Failed to build with error LNK2019: unresolved external symbol __BitScanReverse64 referen
Previous Message Mathias Kunter 2023-06-07 16:53:32 Re: BUG #17964: Missed query planner optimization