aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/parallel.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-08-25 11:54:58 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-08-25 12:02:08 +0200
commit43d4dd87977d5ed66961605649d61973caf80f40 (patch)
tree27822bf86b9d7ac1f2a3e1f155d05e3c7c269226 /src/backend/access/transam/parallel.c
parentbb9ff46bc4e659a865deaeb1b9aeac8d1ff4d36f (diff)
downloadpostgresql-43d4dd87977d5ed66961605649d61973caf80f40.tar.gz
postgresql-43d4dd87977d5ed66961605649d61973caf80f40.zip
psql: Make cancel test more timing robust
The previous coding relied on the PID file appearing and the query starting "fast enough", which can fail on slow machines. Also, there might have been an undocumented interference between alarm and IPC::Run. This new coding doesn't rely on any of these concurrency mechanisms. Instead, we wait unitl the PID file is complete before proceeding, and then also wait until the sleep query is registered by the server. Discussion: https://www.postgresql.org/message-id/flat/E1mH14Q-0002gh-HS%40gemulon.postgresql.org
Diffstat (limited to 'src/backend/access/transam/parallel.c')
0 files changed, 0 insertions, 0 deletions