| From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: 049_wait_for_lsn.pl: create function and procedure at once |
| Date: | 2026-04-20 10:20:56 |
| Message-ID: | E1wElkN-001qeK-2q@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
049_wait_for_lsn.pl: create function and procedure at once
Create the PL/pgSQL function and procedure for the top-level WAIT FOR
checks in a single transaction, then wait once for standby replay before
running both tests. Also revise some surrounding comments.
This avoids an extra 'wait_for_catchup()' on the delayed standby without
changing the test coverage.
Discussion: https://postgr.es/m/CABPTF7WZ1yuYz8V%3Dxsbghg8e7qaAm5MpyNw6BthWcbN7%2BP6biw%40mail.gmail.com
Author: Xuneng Zhou <xunengzhou(at)gmail(dot)com>
Reviewed-by: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/23cbadeeb4738b8f5e615f0c5a2ef7af6111d512
Modified Files
--------------
src/test/recovery/t/049_wait_for_lsn.pl | 24 +++++++++++-------------
1 file changed, 11 insertions(+), 13 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2026-04-20 11:15:27 | pgsql: doc PG 19 relnotes: fix typo, "date" -> "data" |
| Previous Message | Richard Guo | 2026-04-20 08:01:04 | pgsql: Clean up remove_rel_from_query() after self-join elimination com |