diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-03-29 15:36:21 +0200 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2022-03-29 15:36:21 +0200 |
commit | bf902c13930c268388644100663f2998868b6e85 (patch) | |
tree | 92715e94f33cb0d1fd9dc4f5acb2bf3daaf031a5 /src/backend/commands/tablespace.c | |
parent | edea649afbcedd431802a5255cd153538e43ee1d (diff) | |
download | postgresql-bf902c13930c268388644100663f2998868b6e85.tar.gz postgresql-bf902c13930c268388644100663f2998868b6e85.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.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index 55f40831da9..40514ab550f 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -57,7 +57,6 @@ #include "access/tableam.h" #include "access/xact.h" #include "access/xloginsert.h" -#include "access/xlogrecovery.h" #include "access/xlogutils.h" #include "catalog/catalog.h" #include "catalog/dependency.h" @@ -1575,22 +1574,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 |