1. 15 Aug, 2005 2 commits
  2. 10 Jul, 2005 1 commit
    • Bruce Momjian's avatar
      This patch implements putting language handlers for the optional PLs · 07931080
      Bruce Momjian authored
      into pg_catalog rather than public, and supports dumping languages whose
      handlers are found there. This will make it easier to drop the public
      schema if desired.
      
      Unlike the previous patch, the comments have been updated and I have
      reformatted some code to meet Alvarro's request to stick to 80 cols. (I
      actually aghree with this - it makes printing the code much nicer).
      
      I think I did the right thing w.r.t versions earlier than 7.3, but I
      have no real way of checking, so that should be checked by someone with
      more/older knowledge than me ;-)
      
      Andrew Dunstan
      07931080
  3. 30 Jun, 2005 1 commit
  4. 31 Dec, 2004 1 commit
    • PostgreSQL Daemon's avatar
      Tag appropriate files for rc3 · 2ff50159
      PostgreSQL Daemon authored
      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
  5. 14 Dec, 2004 1 commit
    • Tom Lane's avatar
      Cope with circularities involving a view's ON SELECT rule. I originally · 86a069bb
      Tom Lane authored
      thought there couldn't be any, but the folly of this was exposed by an
      example from andrew@supernews.com 5-Dec-2004.  The patch applies the
      identical logic already used for table constraints and defaults to ON
      SELECT rules, so I have reasonable confidence in it even though it might
      look like complicated logic.
      86a069bb
  6. 05 Nov, 2004 1 commit
    • Tom Lane's avatar
      Create 'default_tablespace' GUC variable that supplies a TABLESPACE · 98e8b480
      Tom Lane authored
      clause implicitly whenever one is not given explicitly.  Remove concept
      of a schema having an associated tablespace, and simplify the rules for
      selecting a default tablespace for a table or index.  It's now just
      (a) explicit TABLESPACE clause; (b) default_tablespace if that's not an
      empty string; (c) database's default.  This will allow pg_dump to use
      SET commands instead of tablespace clauses to determine object locations
      (but I didn't actually make it do so).  All per recent discussions.
      98e8b480
  7. 29 Aug, 2004 2 commits
  8. 02 Aug, 2004 1 commit
  9. 18 Jun, 2004 1 commit
  10. 03 Mar, 2004 1 commit
    • Tom Lane's avatar
      Modify pg_dump so that the preferred dump order is by name within · 9e733eab
      Tom Lane authored
      object types, rather than by OID.  This should help ensure consistent
      dump output from databases that are logically the same but have different
      histories, per recent discussion about 'diffing' databases.  The patch
      is bulky because of renaming of fields, but not very complicated.
      Also, do some tweaking to cause BLOB restoration to be done in a better
      order, and clean up pg_restore's textual output to exactly match pg_dump.
      9e733eab
  11. 06 Dec, 2003 1 commit
    • Tom Lane's avatar
      Massive overhaul of pg_dump: make use of dependency information from · 005a1217
      Tom Lane authored
      pg_depend to determine a safe dump order.  Defaults and check constraints
      can be emitted either as part of a table or domain definition, or
      separately if that's needed to break a dependency loop.  Lots of old
      half-baked code for controlling dump order removed.
      005a1217
  12. 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
  13. 21 Nov, 2003 1 commit
    • Tom Lane's avatar
      COMMENT ON casts, conversions, languages, operator classes, and · 42ce74bf
      Tom Lane authored
      large objects.  Dump all these in pg_dump; also add code to pg_dump
      user-defined conversions.  Make psql's large object code rely on
      the backend for inserting/deleting LOB comments, instead of trying to
      hack pg_description directly.  Documentation and regression tests added.
      
      Christopher Kings-Lynne, code reviewed by Tom
      42ce74bf
  14. 08 Aug, 2003 1 commit
  15. 04 Aug, 2003 2 commits
  16. 20 Mar, 2003 1 commit
    • Bruce Momjian's avatar
      It has been tested only against CVS backend, however. Some checking of the · 1b3d4cef
      Bruce Momjian authored
      changes to the SQL to retrieve attributes for older versions of Postgres is
      probably wise.  Also, please make sure that I have mapped the storage types
      to the correct storage names, as this is relatively poorly documented.
      
      I think that this patch might need to be considered for back-porting to
      7.3.3 since at the moment, people will be losing valuable information after
      upgrades.
      
      Will dump:
      
      CREATE TABLE test (
          a text,
          b text,
          c text,
          d text
      );
      ALTER TABLE ONLY test ALTER COLUMN a SET STATISTICS 55;
      ALTER TABLE ONLY test ALTER COLUMN a SET STORAGE PLAIN;
      ALTER TABLE ONLY test ALTER COLUMN b SET STATISTICS 1000;
      ALTER TABLE ONLY test ALTER COLUMN c SET STORAGE EXTERNAL;
      ALTER TABLE ONLY test ALTER COLUMN d SET STORAGE MAIN;
      
      Christopher Kings-Lynne
      1b3d4cef
  17. 09 Oct, 2002 1 commit
    • Bruce Momjian's avatar
      > Alvaro Herrera <alvherre@atentus.com> writes: · ba8e20a6
      Bruce Momjian authored
      > > I'm looking at pg_dump/common.c:flagInhAttrs() and suspect that it can
      > > be more or less rewritten completely, and probably should to get rigth
      > > all the cases mentioned in the past attisinherited discussion.  Is this
      > > desirable for 7.3?  It can probably be hacked around and the rewrite
      > > kept for 7.4, but I think it will be much simpler after the rewrite.
      >
      > If it's a bug then it's fair game to fix in 7.3.  But keep in mind that
      > pg_dump has to behave at least somewhat sanely when called against older
      > servers ... will your rewrite behave reasonably if the server does not
      > offer attinhcount values?
      
      Nah.  I don't think it's worth it: I had forgotten that older versions
      should be supported.  I just left the code as is and added a
      version-specific test.
      
      This patch allows pg_dump to dump correctly local definition of columns.
      In particular,
      
      CREATE TABLE p1 (f1 int, f2 int);
      CREATE TABLE p2 (f1 int);
      CREATE TABLE c () INHERITS (p1, p2);
      ALTER TABLE ONLY p1 DROP COLUMN f1;
      CREATE TABLE p3 (f1 int);
      CREATE TABLE c2 (f1 int) INHERITS (p3);
      
      Will be dumped as
      CREATE TABLE p1 (f2 int);
      CREATE TABLE p2 (f1 int);
      CREATE TABLE c (f1 int) INHERITS (p1, p2);
      CREATE TABLE c2 (f1 int) INHERITS (p3);
      
      (Previous version will dump
      CREATE TABLE c () INHERITS (p1, p2)
      CREATE TABLE c2 () INHERITS (p3) )
      
      Alvaro Herrera
      ba8e20a6
  18. 04 Sep, 2002 1 commit
  19. 22 Aug, 2002 1 commit
  20. 19 Aug, 2002 1 commit
  21. 18 Aug, 2002 1 commit
    • Peter Eisentraut's avatar
      Make pg_dump output more portable and more pleasing to look at. · c828ec88
      Peter Eisentraut authored
      The -n and -N options were removed.  Quoting is now smart enough to
      supply quotes if and only if necessary.
      
      Numerical types are now printed without quotes, except in cases of
      special values such as NaN.
      
      Boolean values printed as true and false.
      
      Most string literals now do not escape whitespace characters (newlines,
      etc.) for portability.
      
      SET SESSION AUTHORIZATION argument is a string literal, to follow SQL.
      
      Made commands output by pg_dump use consistent spacing and indentation.
      c828ec88
  22. 15 Aug, 2002 1 commit
    • Bruce Momjian's avatar
      Tom Lane wrote: · b1a5f872
      Bruce Momjian authored
      > There's no longer a separate call to heap_storage_create in that routine
      > --- the right place to make the test is now in the storage_create
      > boolean parameter being passed to heap_create.  A simple change, but
      > it passeth patch's understanding ...
      
      Thanks.
      
      Attached is a patch against cvs tip as of 8:30 PM PST or so. Turned out
      that even after fixing the failed hunks, there was a new spot in
      bufmgr.c which needed to be fixed (related to temp relations;
      RelationUpdateNumberOfBlocks). But thankfully the regression test code
      caught it :-)
      
      Joe Conway
      b1a5f872
  23. 02 Aug, 2002 1 commit
    • Tom Lane's avatar
      ALTER TABLE DROP COLUMN works. Patch by Christopher Kings-Lynne, · 38bb77a5
      Tom Lane authored
      code review by Tom Lane.  Remaining issues: functions that take or
      return tuple types are likely to break if one drops (or adds!)
      a column in the table defining the type.  Need to think about what
      to do here.
      
      Along the way: some code review for recent COPY changes; mark system
      columns attnotnull = true where appropriate, per discussion a month ago.
      38bb77a5
  24. 31 Jul, 2002 1 commit
    • Tom Lane's avatar
      Instead of having a configure-time DEFAULT_ATTSTATTARGET, store -1 in · ce7565ab
      Tom Lane authored
      attstattarget to indicate 'use the default'.  The default is now a GUC
      variable default_statistics_target, and so may be changed on the fly.  Along
      the way we gain the ability to have pg_dump dump the per-column statistics
      target when it's not the default.  Patch by Neil Conway, with some kibitzing
      from Tom Lane.
      ce7565ab
  25. 30 Jul, 2002 1 commit
  26. 18 Jul, 2002 1 commit
    • Peter Eisentraut's avatar
      pg_cast table, and standards-compliant CREATE/DROP CAST commands, plus · 97377048
      Peter Eisentraut authored
      extension to create binary compatible casts.  Includes dependency tracking
      as well.
      
      pg_proc.proimplicit is now defunct, but will be removed in a separate
      commit.
      
      pg_dump provides a migration path from the previous scheme to declare
      casts.  Dumping binary compatible casts is currently impossible, though.
      97377048
  27. 06 Jul, 2002 1 commit
  28. 02 Jul, 2002 1 commit
  29. 20 Jun, 2002 1 commit
  30. 28 May, 2002 1 commit
    • Tom Lane's avatar
      Rework pg_dump namespace search criteria so that dumping of user objects · 36a1e732
      Tom Lane authored
      having names conflicting with system objects will work --- the search
      path is now user-schema, pg_catalog rather than implicitly the other way
      around.  Note this requires being careful to explicitly qualify references
      to system names whenever pg_catalog is not first in the search path.
      Also, add support for dumping ACLs of schemas.
      36a1e732
  31. 19 May, 2002 1 commit
  32. 10 May, 2002 1 commit
  33. 24 Apr, 2002 2 commits
  34. 21 Apr, 2002 1 commit
  35. 11 Apr, 2002 1 commit
    • Tom Lane's avatar
      Restructure representation of aggregate functions so that they have pg_proc · 902a6a0a
      Tom Lane authored
      entries, per pghackers discussion.  This fixes aggregates to live in
      namespaces, and also simplifies/speeds up lookup in parse_func.c.
      Also, add a 'proimplicit' flag to pg_proc that controls whether a type
      coercion function may be invoked implicitly, or only explicitly.  The
      current settings of these flags are more permissive than I would like,
      but we will need to debate and refine the behavior; for now, I avoided
      breaking regression tests as much as I could.
      902a6a0a
  36. 05 Apr, 2002 1 commit