1. 27 Jun, 2006 1 commit
  2. 05 Mar, 2006 1 commit
  3. 03 Mar, 2006 1 commit
  4. 21 Nov, 2005 1 commit
    • 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
  5. 15 Oct, 2005 1 commit
  6. 01 Aug, 2005 1 commit
  7. 27 Jan, 2005 1 commit
  8. 31 Dec, 2004 1 commit
    • PostgreSQL Daemon's avatar
      · 2ff50159
      PostgreSQL Daemon authored
      Tag appropriate files for rc3
      
      Also performed an initial run through of upgrading our Copyright date to
      extend to 2005 ... first run here was very simple ... change everything
      where: grep 1996-2004 && the word 'Copyright' ... scanned through the
      generated list with 'less' first, and after, to make sure that I only
      picked up the right entries ...
      2ff50159
  9. 16 Sep, 2004 1 commit
    • Tom Lane's avatar
      Restructure subtransaction handling to reduce resource consumption, · 8f9f1986
      Tom Lane authored
      as per recent discussions.  Invent SubTransactionIds that are managed like
      CommandIds (ie, counter is reset at start of each top transaction), and
      use these instead of TransactionIds to keep track of subtransaction status
      in those modules that need it.  This means that a subtransaction does not
      need an XID unless it actually inserts/modifies rows in the database.
      Accordingly, don't assign it an XID nor take a lock on the XID until it
      tries to do that.  This saves a lot of overhead for subtransactions that
      are only used for error recovery (eg plpgsql exceptions).  Also, arrange
      to release a subtransaction's XID lock as soon as the subtransaction
      exits, in both the commit and abort cases.  This avoids holding many
      unique locks after a long series of subtransactions.  The price is some
      additional overhead in XactLockTableWait, but that seems acceptable.
      Finally, restructure the state machine in xact.c to have a more orthogonal
      set of states for subtransactions.
      8f9f1986
  10. 29 Aug, 2004 2 commits
  11. 01 Jul, 2004 1 commit
  12. 05 May, 2004 1 commit
    • Tom Lane's avatar
      ALTER TABLE rewrite. New cool stuff: · 077db40f
      Tom Lane authored
      * ALTER ... ADD COLUMN with defaults and NOT NULL constraints works per SQL
      spec.  A default is implemented by rewriting the table with the new value
      stored in each row.
      
      * ALTER COLUMN TYPE.  You can change a column's datatype to anything you
      want, so long as you can specify how to convert the old value.  Rewrites
      the table.  (Possible future improvement: optimize no-op conversions such
      as varchar(N) to varchar(N+1).)
      
      * Multiple ALTER actions in a single ALTER TABLE command.  You can perform
      any number of column additions, type changes, and constraint additions with
      only one pass over the table contents.
      
      Basic documentation provided in ALTER TABLE ref page, but some more docs
      work is needed.
      
      Original patch from Rod Taylor, additional work from Tom Lane.
      077db40f
  13. 23 Mar, 2004 1 commit
    • Tom Lane's avatar
      Upgrade ALTER TABLE DROP COLUMN so that it can drop an OID column, and · 24614a98
      Tom Lane authored
      remove separate implementation of ALTER TABLE SET WITHOUT OIDS in favor
      of doing a regular DROP.  Also, cause CREATE TABLE to account completely
      correctly for the inheritance status of the OID column.  This fixes
      problems with dropping OID columns that have dependencies, as noted by
      Christopher Kings-Lynne, as well as making sure that you can't drop an
      OID column that was inherited from a parent.
      24614a98
  14. 29 Nov, 2003 1 commit
    • PostgreSQL Daemon's avatar
      · 55b11325
      PostgreSQL Daemon authored
      make sure the $Id tags are converted to $PostgreSQL as well ...
      55b11325
  15. 04 Aug, 2003 1 commit
  16. 20 Mar, 2003 1 commit
  17. 13 Feb, 2003 1 commit
    • Bruce Momjian's avatar
      Code for WITHOUT OIDS. · 8195f8f0
      Bruce Momjian authored
      On Wed, 2003-01-08 at 21:59, Christopher Kings-Lynne wrote:
      > I agree.  I want to remove OIDs from heaps of our tables when we go to 7.3.
      > I'd rather not have to do it in the dump due to down time.
      
      
      Rod Taylor <rbt@rbt.ca>
      8195f8f0
  18. 11 Nov, 2002 1 commit
    • Tom Lane's avatar
      Code review for ON COMMIT patch. Make the actual on-commit action happen · f9b5b41e
      Tom Lane authored
      before commit, not after :-( --- the original coding is not only unsafe
      if an error occurs while it's processing, but it generates an invalid
      sequence of WAL entries.  Resurrect 7.2 logic for deleting items when
      no longer needed.  Use an enum instead of random macros.  Editorialize
      on names used for routines and constants.  Teach backend/nodes routines
      about new field in CreateTable struct.  Add a regression test.
      f9b5b41e
  19. 09 Nov, 2002 1 commit
  20. 21 Oct, 2002 1 commit
  21. 04 Sep, 2002 1 commit
  22. 30 Aug, 2002 1 commit
  23. 01 Jul, 2002 1 commit
    • Tom Lane's avatar
      First phase of applying Rod Taylor's pg_depend patch. This just adds · 131f801d
      Tom Lane authored
      RESTRICT/CASCADE syntax to the DROP commands that need it, and propagates
      the behavioral option through the parser to the routines that execute
      drops.  Doesn't do anything useful yet, but I figured I'd commit these
      changes so I could get out of the parser area while working on the rest.
      131f801d
  24. 30 Apr, 2002 1 commit
  25. 26 Apr, 2002 1 commit
  26. 24 Apr, 2002 1 commit
  27. 15 Apr, 2002 1 commit
    • Tom Lane's avatar
      The contents of command.c, creatinh.c, define.c, remove.c and rename.c · 71dc300a
      Tom Lane authored
      have been divided according to the type of object manipulated - so ALTER
      TABLE code is in tablecmds.c, aggregate commands in aggregatecmds.c and
      so on.
      
      A few common support routines remain in define.c (prototypes in
      src/include/commands/defrem.h).
      
      No code has been changed except for includes to reflect the new files.
      The prototypes for aggregatecmds.c, functioncmds.c, operatorcmds.c,
      and typecmds.c remain in src/include/commands/defrem.h.
      
      From John Gray <jgray@azuli.co.uk>
      71dc300a