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-08-25T12:03:24Z
Lists: pgsql-hackers
On Wed, Aug 25, 2021 at 1:21 AM Noah Misch <noah@leadboat.com> wrote:
> Sounds good.  I think the log message is the optimal place:

Looks awesome.

-- 
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