Code review for NOWAIT patch: downgrade NOWAIT from fully reserved keyword
Tom Lane <tgl@sss.pgh.pa.us>
Code review for NOWAIT patch: downgrade NOWAIT from fully reserved keyword to unreserved keyword, use ereport not elog, assign a separate error code for 'could not obtain lock' so that applications will be able to detect that case cleanly.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/errcodes.sgml | modified | +6 −1 |
| doc/src/sgml/ref/lock.sgml | modified | +2 −2 |
| src/backend/access/heap/heapam.c | modified | +12 −2 |
| src/backend/parser/gram.y | modified | +2 −2 |
| src/include/utils/errcodes.h | modified | +2 −1 |
| src/pl/plpgsql/src/plerrcodes.h | modified | +5 −1 |