summaryrefslogtreecommitdiff
path: root/src/backend/parser
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-10-01 16:40:05 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-10-01 16:40:05 +0000
commit4c5e810fcda57940d1a7178389129591eb93d68e (patch)
tree71677cf693a93449b45fc082fc7c571452ef4459 /src/backend/parser
parent392b187a214272937557af695692b6586375cc66 (diff)
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.
Diffstat (limited to 'src/backend/parser')
-rw-r--r--src/backend/parser/gram.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 8f1b393d29a..5a12bf11891 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.477 2004/09/30 00:24:20 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.478 2004/10/01 16:39:59 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -7727,6 +7727,7 @@ unreserved_keyword:
| NOCREATEUSER
| NOTHING
| NOTIFY
+ | NOWAIT
| OBJECT_P
| OF
| OIDS
@@ -7944,7 +7945,6 @@ reserved_keyword:
| LOCALTIMESTAMP
| NEW
| NOT
- | NOWAIT
| NULL_P
| OFF
| OFFSET