]> git.ipfire.org Git - thirdparty/postgresql.git/commit
tests: Restrict pg_locks queries in advisory_locks.sql to current database
authorAndres Freund <andres@anarazel.de>
Wed, 5 Oct 2022 17:44:38 +0000 (10:44 -0700)
committerAndres Freund <andres@anarazel.de>
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 <michael@paquier.xyz>
Discussion: https://postgr.es/m/20221003234111.4ob7yph6r4g4ywhu@awork3.anarazel.de
src/test/regress/expected/advisory_lock.out
src/test/regress/sql/advisory_lock.sql