diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-09-04 12:40:28 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-09-04 12:40:28 -0400 |
commit | aa4eeb38f3aa3e4ebde4abb6edc79dd530ecda79 (patch) | |
tree | d2beabb9ec63af7a0f07124dcadb7763ce31a85d /src/backend/access/gist/gistvalidate.c | |
parent | 82dd373f2c56f7b32a3304260195fdaf6ed7cd9c (diff) | |
download | postgresql-aa4eeb38f3aa3e4ebde4abb6edc79dd530ecda79.tar.gz postgresql-aa4eeb38f3aa3e4ebde4abb6edc79dd530ecda79.zip |
Fix rare deadlock failure in create_am regression test.
The "DROP ACCESS METHOD gist2" test will require locking the index
to be dropped and then its table; while most ordinary operations
lock a table first then its index. While no concurrent test scripts
should be touching fast_emp4000, autovacuum might chance to be
processing that table when the DROP runs, resulting in a deadlock
failure. This is pretty rare but we see it in the buildfarm from
time to time.
To fix, acquire a lock on fast_emp4000 before issuing the DROP.
Since the point of the exercise is mostly to prevent buildfarm
failures, back-patch to 9.6 where this test was introduced.
Discussion: https://postgr.es/m/839004.1599185607@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions