From fe9c4420e4fd88fa1dcbed68b9fcc45494f7b585 Mon Sep 17 00:00:00 2001
From: Neil Conway
Date: Fri, 12 Mar 2004 00:52:23 +0000
Subject: Improve documentation for the newly-added NOWAIT clause of LOCK
TABLE.
---
doc/src/sgml/ref/lock.sgml | 30 ++++++++++++++++++++++--------
1 file changed, 22 insertions(+), 8 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/ref/lock.sgml b/doc/src/sgml/ref/lock.sgml
index a2c2a78a7aa..cab378ec95c 100644
--- a/doc/src/sgml/ref/lock.sgml
+++ b/doc/src/sgml/ref/lock.sgml
@@ -1,5 +1,5 @@
@@ -33,13 +33,15 @@ where lockmode is one of:
Description
- LOCK TABLE obtains a table-level lock, waiting if
- necessary for any conflicting locks to be released.
- If NOWAIT is given, LOCK TABLE
- does not wait for acquiring lock, and throws an error instead.
- Once obtained, the lock is held for the remainder of the current transaction.
- (There is no UNLOCK TABLE command; locks are always
- released at transaction end.)
+ LOCK TABLE obtains a table-level lock, waiting
+ if necessary for any conflicting locks to be released. If
+ NOWAIT is specified, LOCK
+ TABLE does not wait to acquire the desired lock: if it
+ cannot be immediately acquired, the transaction is aborted and an
+ error is emitted. Once obtained, the lock is held for the
+ remainder of the current transaction. (There is no UNLOCK
+ TABLE command; locks are always released at transaction
+ end.)
@@ -132,6 +134,18 @@ where lockmode is one of:
+
+
+ NOWAIT
+
+
+ Specifies that LOCK TABLE should not wait for
+ any conflicting locks to be released: if the specified lock
+ cannot be immediately acquired without waiting, the transaction
+ is aborted.
+
+
+
--
cgit v1.2.3