pg_dump assertion failure with "-n pg_catalog"
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: pgsql-bugs@postgresql.org
Date: 2023-06-07T17:36:29Z
Lists: pgsql-bugs
Attachments
- 0001-Fix-pg_dump-assertion-failure-when-dumping-pg_catalo.patch (text/x-patch) patch 0001
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
Commits
-
Fix pg_dump assertion failure when dumping pg_catalog.
- 37188cea0c16 17.0 landed
- 501704e826fc 16.0 landed
- 1d9976d1bd00 15.5 landed