Skip to content
Snippets Groups Projects
  1. Nov 21, 2005
    • 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
    • Tom Lane's avatar
      Clean up after DROP IF EXISTS patch. · b91e6ed9
      Tom Lane authored
      b91e6ed9
  2. Nov 20, 2005
  3. Nov 19, 2005
    • Tom Lane's avatar
      Stopgap solution for problem reported by Alexey Beschiokov: after · 33a9af73
      Tom Lane authored
      doing heap_insert or heap_update, wipe out any extracted fields in
      the TupleTableSlot containing the tuple, because they might not be valid
      anymore if tuptoaster.c changed the tuple.  Safe because slot must be
      in the materialized state, but mighty ugly --- find a better answer!
      33a9af73
    • Tom Lane's avatar
      Change array comparison rules to consider dimensionality information, · 659f6816
      Tom Lane authored
      not only the array contents, before claiming two arrays are equal.
      Per recent discussion.
      659f6816
    • Andrew Dunstan's avatar
      · daea4d8e
      Andrew Dunstan authored
      DROP objecttype IF EXISTS for the following objects:
        table view index sequence schema type domain conversion
      daea4d8e
    • Tom Lane's avatar
      Change array_push and array_cat so that they retain the lower bound of · 1e9a1a70
      Tom Lane authored
      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
    • Tom Lane's avatar
      Fix performance issue in exprTypmod(): for a COALESCE expression, it · 8685c472
      Tom Lane authored
      recursed twice on its first argument, leading to exponential time spent
      on a deep nest of COALESCEs ... such as a deeply nested FULL JOIN would
      produce.  Per report from Matt Carter.
      8685c472
  4. Nov 18, 2005
  5. Nov 17, 2005
    • 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. Nov 16, 2005
  7. Nov 15, 2005
  8. Nov 14, 2005
  9. Nov 13, 2005
  10. Nov 10, 2005
    • Andrew Dunstan's avatar
      · f9db22e8
      Andrew Dunstan authored
      add missing quote mark to ident_file sample line - per Hiroshi Saito
      f9db22e8
    • Tom Lane's avatar
      When in transaction-aborted state, reject Bind message for portals containing · da4e00bf
      Tom Lane authored
      anything but transaction-exiting commands (ROLLBACK etc).  We already rejected
      Parse and Execute in such cases, so there seems little point in allowing Bind.
      This prevents at least an Assert failure, and probably worse things, since
      there's a lot of infrastructure that doesn't work when not in a live
      transaction.  We can also simplify the Bind logic a bit by rejecting messages
      with a nonzero number of parameters, instead of the former kluge to silently
      substitute NULL for each parameter.  Per bug #2033 from Joel Stevenson.
      da4e00bf
  11. Nov 09, 2005
  12. Nov 08, 2005
  13. Nov 07, 2005
  14. Nov 06, 2005
  15. Nov 05, 2005
Loading