pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: pg_stash_advice: Fix race conditions in 001_persist.pl
2+ messages / 1 participants
[nested] [flat]

* pgsql: pg_stash_advice: Fix race conditions in 001_persist.pl
@ 2026-10-30 16:45  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2026-10-30 16:45 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_stash_advice: Fix race conditions in 001_persist.pl

Each time we start the server, there's a brief lockout while the
persistence worker reloads stashes from disk. Until that's complete,
no stashes will be visible and no stash modifications can be made.
This test case failed to take that into account, and could therefore
fail spuriously.

Reported-by: Alexander Lakhin <exclusion@gmail.com>
Reported-by: Nik Samokhvalov <nik@postgres.ai>
Author: Nik Samokhvalov <nik@postgres.ai>
Co-authored-by: Robert Haas <rhaas@postgresql.org> (whitespace changes)
Backpatch-through: 19
Discussion: http://postgr.es/m/CAM527d8PqdbDy=PuTLYBJM8-FvvFDr2BLcyFyZhw6Oi9rXb14g@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/884aca9b96989b9bc1b65d42e731e90f098ee2ee

Modified Files
--------------
contrib/pg_stash_advice/t/001_persist.pl | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: pg_stash_advice: Fix race conditions in 001_persist.pl
@ 2026-10-30 16:45  Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2026-10-30 16:45 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

pg_stash_advice: Fix race conditions in 001_persist.pl

Each time we start the server, there's a brief lockout while the
persistence worker reloads stashes from disk. Until that's complete,
no stashes will be visible and no stash modifications can be made.
This test case failed to take that into account, and could therefore
fail spuriously.

Reported-by: Alexander Lakhin <exclusion@gmail.com>
Reported-by: Nik Samokhvalov <nik@postgres.ai>
Author: Nik Samokhvalov <nik@postgres.ai>
Co-authored-by: Robert Haas <rhaas@postgresql.org> (whitespace changes)
Backpatch-through: 19
Discussion: http://postgr.es/m/CAM527d8PqdbDy=PuTLYBJM8-FvvFDr2BLcyFyZhw6Oi9rXb14g@mail.gmail.com

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/dccaf9d1e4fe8552134ec322ae93454efeb17b1b

Modified Files
--------------
contrib/pg_stash_advice/t/001_persist.pl | 28 ++++++++++++++++++++++------
1 file changed, 22 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2026-10-30 16:45 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 16:45 pgsql: pg_stash_advice: Fix race conditions in 001_persist.pl Robert Haas <rhaas@postgresql.org>
2026-10-30 16:45 pgsql: pg_stash_advice: Fix race conditions in 001_persist.pl Robert Haas <rhaas@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox