1 /*-------------------------------------------------------------------------
3 * Header file for LockWaitPolicy enum.
5 * Copyright (c) 2014, PostgreSQL Global Development Group
7 * src/include/utils/lockwaitpolicy.h
8 *-------------------------------------------------------------------------
10 #ifndef LOCKWAITPOLICY_H
11 #define LOCKWAITPOLICY_H
14 * This enum controls how to deal with rows being locked by FOR UPDATE/SHARE
15 * clauses (i.e., NOWAIT and SKIP LOCKED clauses). The ordering here is
16 * important, because the highest numerical value takes precedence when a
17 * RTE is specified multiple ways. See applyLockingClause.
21 /* Wait for the lock to become available (default behavior) */
24 /* Skip rows that can't be locked (SKIP LOCKED) */
27 /* Raise an error if a row cannot be locked (NOWAIT) */
31 #endif /* LOCKWAITPOLICY_H */