Split out MERGE and REPLACE/UPSERT items.
authorBruce Momjian
Thu, 1 Dec 2005 22:07:59 +0000 (22:07 +0000)
committerBruce Momjian
Thu, 1 Dec 2005 22:07:59 +0000 (22:07 +0000)
< * 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

doc/TODO
doc/src/FAQ/TODO.html

index b43b45d89e1cd24e9e7d1fa156f6843c60bf59b1..ec8b12abe5ccb34e072628f7c00d87e8ef96f678 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -2,7 +2,7 @@
 PostgreSQL TODO List
 ====================
 Current maintainer:    Bruce Momjian ([email protected])
-Last updated:      Mon Nov 28 21:02:36 EST 2005
+Last updated:      Thu Dec  1 17:07:44 EST 2005
 
 The most recent version of this document can be viewed at
 http://www.postgresql.org/docs/faqs.TODO.html.
@@ -369,8 +369,13 @@ SQL Commands
   information.
 
 * Add a GUC variable to warn about non-standard SQL usage in queries
-* 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
 
   To implement this cleanly requires that the table have a unique index
   so duplicate checking can be easily performed.  It is possible to
index 527e4e1b20e12efa6b504ee0d356ac0313964f5a..6b00a6b1dba3184788eff65ba561ec7089574d8f 100644 (file)
@@ -8,7 +8,7 @@
 
 

PostgreSQL TODO List

 

Current maintainer:     Bruce Momjian ([email protected])

-Last updated:           Mon Nov 28 21:02:36 EST 2005
+Last updated:           Thu Dec  1 17:07:44 EST 2005
 

 

The most recent version of this document can be viewed at

 http://www.postgresql.org/docs/faqs.TODO.html.
@@ -339,8 +339,12 @@ first.
   information.
 

   
  • Add a GUC variable to warn about non-standard SQL usage in queries
  • -  
  • 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
  •  

      To implement this cleanly requires that the table have a unique index

       so duplicate checking can be easily performed.  It is possible to
       do it without a unique index if we require the user to LOCK the table