Opened 4 years ago

Closed 4 years ago

#26500 closed New feature (fixed)

Implement select_for_update(skip_locked=True) for Postgresql and Oracle

Reported by: Simon Charette Owned by: Simon Charette
Component: Database layer (models, ORM) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


PostgreSQL supports this feature since 9.5.

A ValueError should be raised if both nowait and skip_locked are True.

Change History (5)

comment:1 Changed 4 years ago by Anssi Kääriäinen

Triage Stage: UnreviewedAccepted

comment:2 Changed 4 years ago by Simon Charette

Owner: changed from nobody to Simon Charette
Status: newassigned

comment:3 Changed 4 years ago by Simon Charette

Has patch: set

comment:4 Changed 4 years ago by Tim Graham

Triage Stage: AcceptedReady for checkin

comment:5 Changed 4 years ago by Simon Charette <charette.s@…>

Resolution: fixed
Status: assignedclosed

In b8e6e1b4:

Fixed #26500 -- Added SKIP LOCKED support to select_for_update().

Thanks Tim for the review.

Note: See TracTickets for help on using tickets.
Back to Top