Re: Add test of pg_prewarm extenion

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Dong Wook Lee <sh95119@gmail.com>, pgsql-hackers@postgresql.org, Justin Pryzby <pryzby@telsasoft.com>
Date: 2022-08-01T14:27:57Z
Lists: pgsql-hackers
Julien Rouhaud <rjuju123@gmail.com> writes:
> On Mon, Aug 1, 2022 at 5:16 PM Dong Wook Lee <sh95119@gmail.com> wrote:
>> I have no idea how to deal with race conditions.
>> Does anybody know how to deal with this?

> Couldn't you use $node->wait_for_log() instead?

Yeah.  The standard usage pattern for that also covers the issue
of not re-examining prior chunks of the log.

			regards, tom lane



Commits

  1. Add a regression test for contrib/pg_prewarm.