diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-04-05 20:44:01 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-04-05 20:44:01 -0400 |
commit | 9a7229948c70945ca6ef0b36adfe61b74f4fdaf5 (patch) | |
tree | 37bd3235b4bd5ae12e6ab5a73914b4babd934436 /contrib/pageinspect/gistfuncs.c | |
parent | 8803df4ea960117f42f38ee82a74e954e72e0339 (diff) | |
download | postgresql-9a7229948c70945ca6ef0b36adfe61b74f4fdaf5.tar.gz postgresql-9a7229948c70945ca6ef0b36adfe61b74f4fdaf5.zip |
Remove race condition in 022_crash_temp_files.pl test.
It's possible for the query that "waits for restart" to complete a
successful iteration before the postmaster has noticed its SIGKILL'd
child and begun the restart cycle. (This is a bit hard to believe
perhaps, but it's been seen at least twice in the buildfarm, mainly
on ancient platforms that likely have quirky schedulers.)
To provide a more secure interlock, wait for the other session
we're using to report that it's been forcibly shut down.
Patch by me, based on a suggestion from Andres Freund.
Back-patch to v14 where this test case came in.
Discussion: https://postgr.es/m/1801850.1649047827@sss.pgh.pa.us
Diffstat (limited to 'contrib/pageinspect/gistfuncs.c')
0 files changed, 0 insertions, 0 deletions