# EXECUTION_LOCK variable · @imqueue/pg-pubsub

Source: https://imqueue.org/api/pg-pubsub/latest/pg-pubsub.execution_lock/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-pubsub 3.0.5 — generated reference, not hand-written

Default for `PgPubSubOptions.executionLock` — off. Enable with `PG_PUBSUB_EXECUTION_LOCK`.

When on, a message is de-duplicated by CONTENT rather than by listener: a marker row is written for each handled payload, and an identical payload arriving again within [UNIQUE\_LOCK\_TTL](https://imqueue.org/api/pg-pubsub/latest/pg-pubsub.unique_lock_ttl/) is skipped. That protects against duplicate publication, but it also means two legitimately identical notifications collapse into one — which is a correctness problem if your payloads are not unique.

**Signature:**

```typescript
EXECUTION_LOCK: boolean
```

