1. 02 12月, 2005 1 次提交
    • B
      Split out MERGE and REPLACE/UPSERT items. · 24e1a045
      Bruce Momjian 提交于
      < * 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
      24e1a045
  2. 01 12月, 2005 1 次提交
  3. 29 11月, 2005 5 次提交
  4. 24 11月, 2005 2 次提交
  5. 23 11月, 2005 3 次提交
  6. 22 11月, 2005 11 次提交
  7. 21 11月, 2005 1 次提交
    • A
      Implement DROP OWNED and REASSIGN OWNED. These new commands facilitate the · cec3b0a9
      Alvaro Herrera 提交于
      process of dropping roles by dropping objects owned by them and privileges
      granted to them, or giving the owned objects to someone else, through the
      use of the data stored in the new pg_shdepend catalog.
      
      Some refactoring of the GRANT/REVOKE code was needed, as well as ALTER OWNER
      code.  Further cleanup of code duplication in the GRANT code seems necessary.
      
      Implemented by me after an idea from Tom Lane, who also provided various kind
      of implementation advice.
      
      Regression tests pass.  Some tests for the new functionality are also added,
      as well as rudimentary documentation.
      cec3b0a9
  8. 20 11月, 2005 2 次提交
  9. 19 11月, 2005 1 次提交
    • T
      Change array_push and array_cat so that they retain the lower bound of · 1e9a1a70
      Tom Lane 提交于
      the array (for array_push) or higher-dimensional array (for array_cat)
      rather than decrementing it as before.  This avoids generating lower
      bounds other than one for any array operation within the SQL spec.  Per
      recent discussion.
      Interestingly, this seems to have been the original behavior, because
      while updating the docs I noticed that a large fraction of relevant
      examples were *wrong* for the old behavior and are now right.  Is it
      worth correcting this in the back-branch docs?
      1e9a1a70
  10. 18 11月, 2005 2 次提交
  11. 17 11月, 2005 2 次提交
    • B
      Update, add mention of user locking table before MERGE: · 84bb3876
      Bruce Momjian 提交于
      <   so duplicate checking can be easily performed.
      >   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
      >   before the MERGE.
      84bb3876
    • B
      Add batch mode, make new libpq section: · 01798a06
      Bruce Momjian 提交于
      < * Add a libpq function to support Parse/DescribeStatement capability
      < * Add PQescapeIdentifier() to libpq
      < * Prevent PQfnumber() from lowercasing unquoted the column name
      <
      <   PQfnumber() should never have been doing lowercasing, but historically
      <   it has so we need a way to prevent it
      <
      648a642,661
      >
      >
      > libpq
      >
      > 	o Add a function to support Parse/DescribeStatement capability
      > 	o Add PQescapeIdentifier()
      > 	o Prevent PQfnumber() from lowercasing unquoted the column name
      >
      > 	  PQfnumber() should never have been doing lowercasing, but
      > 	  historically it has so we need a way to prevent it
      >
      > 	o Allow query results to be automatically batched to the client
      >
      > 	  Currently, all query results are transfered to the libpq
      > 	  client before libpq makes the results available to the
      > 	  application.  This feature would allow the application to make
      > 	  use of the first result rows while the rest are transfered, or
      > 	  held on the server waiting for them to be requested by libpq.
      > 	  One complexity is that a query like SELECT 1/col could error
      > 	  out mid-way through the result set.
      01798a06
  12. 16 11月, 2005 3 次提交
  13. 08 11月, 2005 1 次提交
  14. 06 11月, 2005 1 次提交
  15. 05 11月, 2005 4 次提交