< * Allow DEFERRABLE UNIQUE constraints?
> * Allow DEFERRABLE and end-of-statement UNIQUE constraints?
>
>   This would allow UPDATE tab SET col = col + 1 to work if col has
>   a unique index.  Currently, uniqueness checks are done while the
>   command is being executed, rather than at the end of the statement
>   or transaction.
>
This commit is contained in:
Bruce Momjian 2006-08-28 23:20:35 +00:00
parent 1832cefda1
commit 79222272bb
2 changed files with 15 additions and 4 deletions

View File

@ -2,7 +2,7 @@
PostgreSQL TODO List PostgreSQL TODO List
==================== ====================
Current maintainer: Bruce Momjian (bruce@momjian.us) Current maintainer: Bruce Momjian (bruce@momjian.us)
Last updated: Fri Aug 25 19:43:59 EDT 2006 Last updated: Mon Aug 28 19:20:20 EDT 2006
The most recent version of this document can be viewed at The most recent version of this document can be viewed at
http://www.postgresql.org/docs/faqs.TODO.html. http://www.postgresql.org/docs/faqs.TODO.html.
@ -873,7 +873,13 @@ Triggers
memory. This could exhaust memory for very large trigger queues. memory. This could exhaust memory for very large trigger queues.
This item involves dumping large queues into files. This item involves dumping large queues into files.
* Allow DEFERRABLE UNIQUE constraints? * Allow DEFERRABLE and end-of-statement UNIQUE constraints?
This would allow UPDATE tab SET col = col + 1 to work if col has
a unique index. Currently, uniqueness checks are done while the
command is being executed, rather than at the end of the statement
or transaction.
* Allow triggers to be disabled in only the current session. * Allow triggers to be disabled in only the current session.
This is currently possible by starting a multi-statement transaction, This is currently possible by starting a multi-statement transaction,

View File

@ -8,7 +8,7 @@
<body bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#A00000" alink="#0000FF"> <body bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#A00000" alink="#0000FF">
<h1><a name="section_1">PostgreSQL TODO List</a></h1> <h1><a name="section_1">PostgreSQL TODO List</a></h1>
<p>Current maintainer: Bruce Momjian (<a href="mailto:bruce@momjian.us">bruce@momjian.us</a>)<br/> <p>Current maintainer: Bruce Momjian (<a href="mailto:bruce@momjian.us">bruce@momjian.us</a>)<br/>
Last updated: Fri Aug 25 19:43:59 EDT 2006 Last updated: Mon Aug 28 19:20:20 EDT 2006
</p> </p>
<p>The most recent version of this document can be viewed at<br/> <p>The most recent version of this document can be viewed at<br/>
<a href="http://www.postgresql.org/docs/faqs.TODO.html">http://www.postgresql.org/docs/faqs.TODO.html</a>. <a href="http://www.postgresql.org/docs/faqs.TODO.html">http://www.postgresql.org/docs/faqs.TODO.html</a>.
@ -794,7 +794,12 @@ first.
memory. This could exhaust memory for very large trigger queues. memory. This could exhaust memory for very large trigger queues.
This item involves dumping large queues into files. This item involves dumping large queues into files.
</p> </p>
</li><li>Allow DEFERRABLE UNIQUE constraints? </li><li>Allow DEFERRABLE and end-of-statement UNIQUE constraints?
<p> This would allow UPDATE tab SET col = col + 1 to work if col has
a unique index. Currently, uniqueness checks are done while the
command is being executed, rather than at the end of the statement
or transaction.
</p>
</li><li>Allow triggers to be disabled in only the current session. </li><li>Allow triggers to be disabled in only the current session.
<p> This is currently possible by starting a multi-statement transaction, <p> This is currently possible by starting a multi-statement transaction,
modifying the system tables, performing the desired SQL, restoring the modifying the system tables, performing the desired SQL, restoring the