mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
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.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/errcodes.sgml,v 1.8 2004/08/24 00:06:50 neilc Exp $ -->
|
||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/errcodes.sgml,v 1.9 2004/10/01 16:39:46 tgl Exp $ -->
|
||||
|
||||
<appendix id="errcodes-appendix">
|
||||
<title><productname>PostgreSQL</productname> Error Codes</title>
|
||||
@ -1099,6 +1099,11 @@
|
||||
<entry>CANT CHANGE RUNTIME PARAM</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><literal>55P03</literal></entry>
|
||||
<entry>LOCK NOT AVAILABLE</entry>
|
||||
</row>
|
||||
|
||||
|
||||
<row>
|
||||
<entry>Class 57</entry>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/lock.sgml,v 1.42 2004/03/12 00:52:23 neilc Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/lock.sgml,v 1.43 2004/10/01 16:39:47 tgl Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@ -37,7 +37,7 @@ where <replaceable class="PARAMETER">lockmode</replaceable> is one of:
|
||||
if necessary for any conflicting locks to be released. If
|
||||
<literal>NOWAIT</literal> is specified, <command>LOCK
|
||||
TABLE</command> does not wait to acquire the desired lock: if it
|
||||
cannot be immediately acquired, the transaction is aborted and an
|
||||
cannot be acquired immediately, the command is aborted and an
|
||||
error is emitted. Once obtained, the lock is held for the
|
||||
remainder of the current transaction. (There is no <command>UNLOCK
|
||||
TABLE</command> command; locks are always released at transaction
|
||||
|
Reference in New Issue
Block a user