]> git.ipfire.org Git - thirdparty/postgresql.git/commit
049_wait_for_lsn.pl: create function and procedure at once
authorAlexander Korotkov <akorotkov@postgresql.org>
Mon, 20 Apr 2026 10:05:55 +0000 (13:05 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Mon, 20 Apr 2026 10:05:55 +0000 (13:05 +0300)
commit23cbadeeb4738b8f5e615f0c5a2ef7af6111d512
treeed59c79896019991b0d868de3bd5cf35fe5bc992
parent20efbdffeb6418afa13d6c8457054735d11c7e3a
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@gmail.com>
Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>
src/test/recovery/t/049_wait_for_lsn.pl