tests: Restrict pg_locks queries in advisory_locks.sql to current database
authorAndres Freund
Wed, 5 Oct 2022 17:44:38 +0000 (10:44 -0700)
committerAndres Freund
Wed, 5 Oct 2022 17:44:38 +0000 (10:44 -0700)
commitc3315a7da57be720222b119385ed0f7ad7c15268
tree11bcbc5ae9709db80108f17ba5c6a7689032bf30
parent6a20b04f0408fb61da610543d4608a08f86d1aeb
tests: Restrict pg_locks queries in advisory_locks.sql to current database

Otherwise testing an existing installation can fail, if there are other locks,
e.g. from one of the isolation tests.

Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/20221003234111[email protected]
src/test/regress/expected/advisory_lock.out
src/test/regress/sql/advisory_lock.sql