Add support for KEY/NO KEY locking in PostgreSQL

Description

As explained in this forum thread, PostgreSQL provides the `NO KEYS` directive for pessimistic locking which allows child records that reference a parent row which was locked to be inserted.

To address this requirement, we have two options:

  1. We could add a Hibernate configuration property which will allow Hibernate to use `KEY/NO KEY` when doing a PESSIMISTIC_READ or PESSIMISTIC_WRITE.

  2. We could add a new LockOptions.NO_KEY for this purpose.

  3. Using a Query Hint.

Activity

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created December 3, 2018 at 1:08 PM
Updated March 31, 2022 at 5:22 PM
Resolved March 25, 2022 at 7:55 PM