tests: Restrict pg_locks queries in advisory_locks.sql to current database

Andres Freund <andres@anarazel.de>

Commit: c3315a7da57be720222b119385ed0f7ad7c15268
Author: Andres Freund <andres@anarazel.de>
Date: 2022-10-05T17:44:38Z
Releases: 16.0
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

Files

Discussion