aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablespace.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2022-03-29 15:36:21 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2022-03-29 15:36:21 +0200
commitadc943b4e1fe26c3085e81c65f5b185c7ff0611a (patch)
tree063de12e034caf8622094bfc8f565f2a7e405b37 /src/backend/commands/tablespace.c
parent6b262f353ef710704a9388d32924b8c10c7e6eaa (diff)
downloadpostgresql-adc943b4e1fe26c3085e81c65f5b185c7ff0611a.tar.gz
postgresql-adc943b4e1fe26c3085e81c65f5b185c7ff0611a.zip
Revert "Fix replay of create database records on standby"
This reverts commit 49d9cfc68bf4. The approach taken by this patch has problems, so we'll come up with a radically different fix. Discussion: https://postgr.es/m/CA+TgmoYcUPL+WOJL2ZzhH=zmrhj0iOQ=iCFM0SuYqBbqZEamEg@mail.gmail.com
Diffstat (limited to 'src/backend/commands/tablespace.c')
-rw-r--r--src/backend/commands/tablespace.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c
index eedc6162128..5411638696b 100644
--- a/src/backend/commands/tablespace.c
+++ b/src/backend/commands/tablespace.c
@@ -58,7 +58,6 @@
#include "access/xact.h"
#include "access/xlog.h"
#include "access/xloginsert.h"
-#include "access/xlogutils.h"
#include "catalog/catalog.h"
#include "catalog/dependency.h"
#include "catalog/indexing.h"
@@ -1530,22 +1529,6 @@ tblspc_redo(XLogReaderState *record)
{
xl_tblspc_drop_rec *xlrec = (xl_tblspc_drop_rec *) XLogRecGetData(record);
- if (!reachedConsistency)
- XLogForgetMissingDir(xlrec->ts_id, InvalidOid);
-
- /*
- * Before we remove the tablespace directory, update minimum recovery
- * point to cover this WAL record. Once the tablespace is removed,
- * there's no going back. This manually enforces the WAL-first rule.
- * Doing this before the removal means that if the removal fails for
- * some reason, the directory is left alone and needs to be manually
- * removed. Alternatively we could update the minimum recovery point
- * after removal, but that would leave a small window where the
- * WAL-first rule could be violated.
- */
- if (!reachedConsistency)
- XLogFlush(record->EndRecPtr);
-
/*
* If we issued a WAL record for a drop tablespace it implies that
* there were no files in it at all when the DROP was done. That means