7.9. Advisory Locks #
PostgreSQL provides ways of creating locks that have application-defined meanings. These are cluster-wide advisory locks because the system does not enforce their use. Advisory locks and global locks work simultaneously and do not conflict with each other. Both these locks can be viewed with the pg_locks view and have the shradman
value in locktype
.
To see the advisory lock functions, refer to Advisory Lock Functions.