BUG #18392: Can't restore database (using pg_restore) after latest Feb 8 update

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: carl(at)msupply(dot)foundation
Subject: BUG #18392: Can't restore database (using pg_restore) after latest Feb 8 update
Date: 2024-03-14 03:06:57
Message-ID: 18392-142078457489d3a5@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18392
Logged by: Carl Smith
Email address: carl(at)msupply(dot)foundation
PostgreSQL version: 14.11
Operating system: MacOS
Description:

We regularly save snapshots of our app state using pg_dump and restore them
with pg_restore. However, after the latest update (12.18 etc), we can no
longer use pg_restore to restore the database -- it just throws a bunch of
errors, mainly to do with tables not existing (that should exist).

The command we've been dumping with is:
`pg_dump -U postgres tmf_app_manager --format=custom -f
output_folder/database.dump`

And restoring with:
`pg_restore -U postgres --clean --if-exists --dbname tmf_app_manager
output_folder/database.dump`

This seems to have become a problem with ALL of the recent (Feb 8) minor
updates -- I can restore fine with 12.17, 14.10, 15.5 etc, but get the
identical failures with 12.18, 14.11, 15.6 etc. So currently there is no
"current" version we can use, which is frustrating as most repos only offer
the latest minor version (easily anyway), so it's become very
difficult/impossible to set up on a new system.

I presume there is something about our database state that is "illegal" in
some way with respect to the new updates, but we have no way to know what
exactly the problem is. Reading through the release notes doesn't offer any
insight.

I'm happy to share a copy of one of our database dumps in order to
demonstrate the problem.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Laurenz Albe 2024-03-14 05:58:28 Re: BUG #18392: Can't restore database (using pg_restore) after latest Feb 8 update
Previous Message ocean_li_996 2024-03-14 02:14:03 Re:RE: Re:Re:BUG #18369: logical decoding core on AssertTXNLsnOrder()