1. 21 Nov, 2005 2 commits
    • Alvaro Herrera's avatar
      Implement DROP OWNED and REASSIGN OWNED. These new commands facilitate the · cec3b0a9
      Alvaro Herrera authored
      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
    • Teodor Sigaev's avatar
      Text parser rewritten: · c52795d1
      Teodor Sigaev authored
              - supports multibyte encodings
              - more strict rules for lexemes
              - flex isn't used
      Add:
              - tsquery plainto_tsquery(text)
                Function makes tsquery from plain text.
              - &&, ||, !! operation for tsquery for combining
                tsquery from it's parts:  'foo & bar' || 'asd' => 'foo & bar | asd'
      c52795d1
  2. 20 Nov, 2005 3 commits
  3. 19 Nov, 2005 6 commits
  4. 18 Nov, 2005 6 commits
  5. 17 Nov, 2005 3 commits
    • Andrew Dunstan's avatar
      · b7a9e3ce
      Andrew Dunstan authored
      make psql honor explicit database parameter in -l mode, in case "postgres" database is missing - per complaint from Philip Yarra.
      b7a9e3ce
    • Tom Lane's avatar
      Make SQL arrays support null elements. This commit fixes the core array · cecb6075
      Tom Lane authored
      functionality, but I still need to make another pass looking at places
      that incidentally use arrays (such as ACL manipulation) to make sure they
      are null-safe.  Contrib needs work too.
      I have not changed the behaviors that are still under discussion about
      array comparison and what to do with lower bounds.
      cecb6075
    • Tom Lane's avatar
      DropRelFileNodeBuffers failed to fix the state of the lookup hash table · c859308a
      Tom Lane authored
      that was added to localbuf.c in 8.1; therefore, applying it to a temp table
      left corrupt lookup state in memory.  The only case where this had a
      significant chance of causing problems was an ON COMMIT DELETE ROWS temp
      table; the other possible paths left bogus state that was unlikely to
      be used again.  Per report from Csaba Nagy.
      c859308a
  6. 16 Nov, 2005 7 commits
    • Bruce Momjian's avatar
      Update, add mention of user locking table before MERGE: · 84bb3876
      Bruce Momjian authored
      <   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
    • Tom Lane's avatar
      make_restrictinfo() failed to attach the specified required_relids to · ccdcd196
      Tom Lane authored
      its result when the clause was an OR clause.  Brain fade exposed by
      example from Sebastian BÎck.
      ccdcd196
    • Bruce Momjian's avatar
      Add batch mode, make new libpq section: · 01798a06
      Bruce Momjian authored
      < * 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
    • Tatsuo Ishii's avatar
      Fix comment on -v option · 2feb930a
      Tatsuo Ishii authored
      2feb930a
    • Bruce Momjian's avatar
      04ce3cb0
    • Bruce Momjian's avatar
      558c4367
    • Bruce Momjian's avatar
      46117e4f
  7. 15 Nov, 2005 4 commits
  8. 14 Nov, 2005 7 commits
  9. 13 Nov, 2005 2 commits