---
title: "Advisory Lock — Database Glossary | Xata"
description: "An application-controlled lock managed by PostgreSQL but not tied to any table or row. Acquired and released explicitly by application code. Used for co..."
source: "https://xata.io/glossary/advisory-lock"
---

# Advisory Lock

Transactions

An application-controlled lock managed by PostgreSQL but not tied to any table or row. Acquired and released explicitly by application code. Used for coordinating distributed processes or preventing duplicate work.

[← Back to glossary](/glossary)
