diff options
| author | Alexander Korotkov <akorotkov@postgresql.org> | 2020-04-08 11:37:27 +0300 |
|---|---|---|
| committer | Alexander Korotkov <akorotkov@postgresql.org> | 2020-04-08 11:37:27 +0300 |
| commit | 1aac32df89eb19949050f6f27c268122833ad036 (patch) | |
| tree | 7f1b7d61e1bdb19a5f9437d5198b63e4be4e2ecb /src/backend/tcop/utility.c | |
| parent | 02a2e8b442002a698336954633b0ccc4e30061e6 (diff) | |
| download | postgresql-1aac32df89eb19949050f6f27c268122833ad036.tar.gz | |
Revert 0f5ca02f53
0f5ca02f53 introduces 3 new keywords. It appears to be too much for relatively
small feature. Given now we past feature freeze, it's already late for
discussion of the new syntax. So, revert.
Discussion: https://postgr.es/m/28209.1586294824%40sss.pgh.pa.us
Diffstat (limited to 'src/backend/tcop/utility.c')
| -rw-r--r-- | src/backend/tcop/utility.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index f516bd22ea..b1f7f6e2d0 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -57,7 +57,6 @@ #include "commands/user.h" #include "commands/vacuum.h" #include "commands/view.h" -#include "commands/wait.h" #include "miscadmin.h" #include "parser/parse_utilcmd.h" #include "postmaster/bgwriter.h" @@ -592,18 +591,6 @@ standard_ProcessUtility(PlannedStmt *pstmt, case TRANS_STMT_START: { ListCell *lc; - WaitClause *waitstmt = (WaitClause *) stmt->wait; - - /* WAIT FOR cannot be used on master */ - if (stmt->wait && !RecoveryInProgress()) - ereport(ERROR, - (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("WAIT FOR can only be " - "used on standby"))); - - /* If needed to WAIT FOR something but failed */ - if (stmt->wait && WaitLSNMain(waitstmt, dest) == 0) - break; BeginTransactionBlock(); foreach(lc, stmt->options) |
