Re: dbase_redo: XLOG_DBASE_CREATE_FILE_COPY replay empties live database

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Jan Nidzwetzki <jan(at)planetscale(dot)com>
Cc: Michael Malis <malis(at)pgrust(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: dbase_redo: XLOG_DBASE_CREATE_FILE_COPY replay empties live database
Date: 2026-12-05 05:05:29
Message-ID: CAGRkXqS4opmi3TQ8uOO3HOEndj6H8HjdYBm88q9R96s6piEErA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Jan,

Thanks for the patches. With 0001 to 0003 the database is still lost
if it is moved twice, like ALTER DATABASE SET TABLESPACE ts1 and then
ts2. The first replay copies an empty placeholder into ts1, and the
second one copies that over the real database in ts2.

Maybe 0003 could also keep the target when the source has no
PG_VERSION?

Thanks,
Shihao

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message shihao zhong 2026-12-05 05:06:29 Re: BUG #19968: ALTER COLUMN TYPE fails with internal errors if a dependent object is dropped concurrently
Previous Message shihao zhong 2026-12-05 04:38:28 Re: BUG #19961: Deadlock detector misses a cycle between a READ ONLY DEFERRABLE safe-snapshot wait and a table lock