Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
fe9c4420
Commit
fe9c4420
authored
Mar 12, 2004
by
Neil Conway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve documentation for the newly-added NOWAIT clause of LOCK TABLE.
parent
bfd6f52b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
+22
-8
doc/src/sgml/ref/lock.sgml
doc/src/sgml/ref/lock.sgml
+22
-8
No files found.
doc/src/sgml/ref/lock.sgml
View file @
fe9c4420
<!--
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/lock.sgml,v 1.4
1 2004/03/11 01:47:35 ishii
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/lock.sgml,v 1.4
2 2004/03/12 00:52:23 neilc
Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -33,13 +33,15 @@ where <replaceable class="PARAMETER">lockmode</replaceable> is one of:
...
@@ -33,13 +33,15 @@ where <replaceable class="PARAMETER">lockmode</replaceable> is one of:
<title>Description</title>
<title>Description</title>
<para>
<para>
<command>LOCK TABLE</command> obtains a table-level lock, waiting if
<command>LOCK TABLE</command> obtains a table-level lock, waiting
necessary for any conflicting locks to be released.
if necessary for any conflicting locks to be released. If
If <literal>NOWAIT</literal> is given, <command>LOCK TABLE</command>
<literal>NOWAIT</literal> is specified, <command>LOCK
does not wait for acquiring lock, and throws an error instead.
TABLE</command> does not wait to acquire the desired lock: if it
Once obtained, the lock is held for the remainder of the current transaction.
cannot be immediately acquired, the transaction is aborted and an
(There is no <command>UNLOCK TABLE</command> command; locks are always
error is emitted. Once obtained, the lock is held for the
released at transaction end.)
remainder of the current transaction. (There is no <command>UNLOCK
TABLE</command> command; locks are always released at transaction
end.)
</para>
</para>
<para>
<para>
...
@@ -132,6 +134,18 @@ where <replaceable class="PARAMETER">lockmode</replaceable> is one of:
...
@@ -132,6 +134,18 @@ where <replaceable class="PARAMETER">lockmode</replaceable> is one of:
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<term><literal>NOWAIT</literal></term>
<listitem>
<para>
Specifies that <command>LOCK TABLE</command> should not wait for
any conflicting locks to be released: if the specified lock
cannot be immediately acquired without waiting, the transaction
is aborted.
</para>
</listitem>
</varlistentry>
</variablelist>
</variablelist>
</refsect1>
</refsect1>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment