postgres.git / summary / log / commit / refs

commit    59bc960fa12958ab863f4085091f2eb278bc7a0d
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Fri Sep 18 08:05:15 2026 +0000

    Rename WAIT FOR to WAIT in one more place
    
    Commit a23ab4862cf renamed WAIT FOR to WAIT, but missed one error
    message.  In passing, also update a few code comments.


src/backend/commands/wait.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/commands/wait.c b/src/backend/commands/wait.c index 86cb27ea2e1..a609f6375dd 100644 --- a/src/backend/commands/wait.c +++ b/src/backend/commands/wait.c @@ -1,7 +1,7 @@ /*------------------------------------------------------------------------- * * wait.c - * Implements WAIT FOR, which allows waiting for events such as + * Implements WAIT, which allows waiting for events such as * time passing or LSN having been replayed, flushed, or written. * * Portions Copyright (c) 2025-2026, PostgreSQL Global Development Group @@ -48,7 +48,7 @@ ExecWaitStmt(ParseState *pstate, WaitStmt *stmt, bool isTopLevel, bool mode_specified = false; /* - * WAIT FOR must not be run as a non-top-level statement (e.g., inside a + * WAIT must not be run as a non-top-level statement (e.g., inside a * function, procedure, or DO block). Forbid this case upfront. */ if (!isTopLevel) @@ -136,7 +136,7 @@ ExecWaitStmt(ParseState *pstate, WaitStmt *stmt, bool isTopLevel, * We are going to wait for the LSN. We should first care that we don't * hold a snapshot and correspondingly our MyProc->xmin is invalid. * Otherwise, our snapshot could prevent the replay of WAL records - * implying a kind of self-deadlock. This is the reason why WAIT FOR is a + * implying a kind of self-deadlock. This is the reason why WAIT is a * command, not a procedure or function. * * Non-top-level contexts are rejected above, but be defensive and pop any @@ -229,7 +229,7 @@ ExecWaitStmt(ParseState *pstate, WaitStmt *stmt, bool isTopLevel, errmsg("cannot wait for a standby LSN while holding locks"), errdetail("This session holds a lock on %s, which could make recovery wait for this session while this session waits for recovery.", locktagbuf.data), - errhint("Release the locks, or execute WAIT FOR before acquiring them."))); + errhint("Release the locks, or execute WAIT before acquiring them."))); } }