Add 'no_error' argument to pg_wal_replay_wait()
Alexander Korotkov <akorotkov@postgresql.org>
Add 'no_error' argument to pg_wal_replay_wait() This argument allow skipping throwing an error. Instead, the result status can be obtained using pg_wal_replay_wait_status() function. Catversion is bumped. Reported-by: Michael Paquier Discussion: https://postgr.es/m/ZtUF17gF0pNpwZDI%40paquier.xyz Reviewed-by: Pavel Borisov
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +50 −6 |
| src/backend/access/transam/xlogfuncs.c | modified | +34 −4 |
| src/backend/access/transam/xlogwait.c | modified | +2 −1 |
| src/backend/catalog/system_functions.sql | modified | +3 −1 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.dat | modified | +6 −1 |
| src/test/recovery/t/043_wal_replay_wait.pl | modified | +22 −0 |
Documentation touched
Discussion
- pgsql: Implement pg_wal_replay_wait() stored procedure 45 messages · 2024-08-02 → 2024-11-04