Skip to content

Commit b022545

Browse files
committed
Docs: Switch mass job deletion instructions to using que.skip_notify
To avoid a ShareRowExclusiveLock, which would prevent row modifications while the transaction is open (que-rb#340 (comment))
1 parent eb1c3f9 commit b022545

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,7 @@ If you prefer to leave finished jobs in the database for a while, to performantl
874874

875875
```sql
876876
BEGIN;
877-
ALTER TABLE que_jobs DISABLE TRIGGER que_state_notify;
877+
SET LOCAL que.skip_notify TO true;
878878
DELETE FROM que_jobs WHERE finished_at < (select now() - interval '7 days');
879-
ALTER TABLE que_jobs ENABLE TRIGGER que_state_notify;
880879
COMMIT;
881880
```

0 commit comments

Comments
 (0)