Skip to content

Commit 24e1a04

Browse files
committed
Split out MERGE and REPLACE/UPSERT items.
< * Add MERGE command that does UPDATE/DELETE, or on failure, INSERT (rules, < triggers?) > * Add SQL-standard MERGE command, typically used to merge two tables > > This is similar to UPDATE, then for unmatched rows, INSERT. > Whether concurrent access allows modifications which could cause > row loss is implementation independent. > > * Add REPLACE or UPSERT command that does UPDATE, or on failure, INSERT
1 parent 8c8c010 commit 24e1a04

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

doc/TODO

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
PostgreSQL TODO List
33
====================
44
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
5-
Last updated: Mon Nov 28 21:02:36 EST 2005
5+
Last updated: Thu Dec 1 17:07:44 EST 2005
66

77
The most recent version of this document can be viewed at
88
http://www.postgresql.org/docs/faqs.TODO.html.
@@ -369,8 +369,13 @@ SQL Commands
369369
information.
370370

371371
* Add a GUC variable to warn about non-standard SQL usage in queries
372-
* Add MERGE command that does UPDATE/DELETE, or on failure, INSERT (rules,
373-
triggers?)
372+
* Add SQL-standard MERGE command, typically used to merge two tables
373+
374+
This is similar to UPDATE, then for unmatched rows, INSERT.
375+
Whether concurrent access allows modifications which could cause
376+
row loss is implementation independent.
377+
378+
* Add REPLACE or UPSERT command that does UPDATE, or on failure, INSERT
374379

375380
To implement this cleanly requires that the table have a unique index
376381
so duplicate checking can be easily performed. It is possible to

doc/src/FAQ/TODO.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<body bgcolor="#FFFFFF" text="#000000" link="#FF0000" vlink="#A00000" alink="#0000FF">
99
<h1><a name="section_1">PostgreSQL TODO List</a></h1>
1010
<p>Current maintainer: Bruce Momjian (<a href="mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</a>)<br/>
11-
Last updated: Mon Nov 28 21:02:36 EST 2005
11+
Last updated: Thu Dec 1 17:07:44 EST 2005
1212
</p>
1313
<p>The most recent version of this document can be viewed at<br/>
1414
<a href="http://www.postgresql.org/docs/faqs.TODO.html">http://www.postgresql.org/docs/faqs.TODO.html</a>.
@@ -339,8 +339,12 @@ <h1><a name="section_8">SQL Commands</a></h1>
339339
information.
340340
</p>
341341
</li><li>Add a GUC variable to warn about non-standard SQL usage in queries
342-
</li><li>Add MERGE command that does UPDATE/DELETE, or on failure, INSERT (rules,
343-
triggers?)
342+
</li><li>Add SQL-standard MERGE command, typically used to merge two tables
343+
<p> This is similar to UPDATE, then for unmatched rows, INSERT.
344+
Whether concurrent access allows modifications which could cause
345+
row loss is implementation independent.
346+
</p>
347+
</li><li>Add REPLACE or UPSERT command that does UPDATE, or on failure, INSERT
344348
<p> To implement this cleanly requires that the table have a unique index
345349
so duplicate checking can be easily performed. It is possible to
346350
do it without a unique index if we require the user to LOCK the table

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy