Re: replay of CREATE TABLESPACE eats data at wal_level=minimal

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: Noah Misch <noah@leadboat.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-09-03T14:12:49Z
Lists: pgsql-hackers
On Thu, Sep 2, 2021 at 10:56 PM Noah Misch <noah@leadboat.com> wrote:
> > Is there anything still standing in the way of committing this?
>
> I pushed it as commit 97ddda8.

Oh, thanks. Sorry, I had missed that.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



Commits

  1. Fix data loss in wal_level=minimal crash recovery of CREATE TABLESPACE.

  2. Skip WAL for new relfilenodes, under wal_level=minimal.

  3. Properly replay CREATE TABLESPACE during crash recovery by deleting