1. 07 Dec, 2003 6 commits
  2. 06 Dec, 2003 3 commits
  3. 05 Dec, 2003 3 commits
  4. 04 Dec, 2003 2 commits
  5. 03 Dec, 2003 5 commits
  6. 02 Dec, 2003 4 commits
  7. 01 Dec, 2003 17 commits
    • Bruce Momjian's avatar
      I've run across a pretty serious problem with pg_autovacuum. · ea4b9f14
      Bruce Momjian authored
      pg_autovacuum looses track of any table that's ever been truncated
      (possibly other situations too).   When i truncate a table it gets a
      new relfilenode in pg_class.  This is a problem because pg_autovacuum
      assumes pg_class.relfilenode will join to pg_stats_all_tables.relid.
      pg_stats_all_tables.relid is actallly the oid from pg_class, not the
      relfilenode.   These two values start out equal so pg_autovacuum works
      initially, but it fails later on because of this incorrect assumption.
      
      This patch fixes that problem.  Applied to HEAD and 7.4.X.
      
      Brian Hirt
      ea4b9f14
    • Bruce Momjian's avatar
      Fix initdb use of mkdir_p(). · 2712ca77
      Bruce Momjian authored
      Andrew Dunstan
      2712ca77
    • Bruce Momjian's avatar
      I noticed in the 7.4 release that in contrib/pg_autovacuum, args->logfile is · 15b5d6cf
      Bruce Momjian authored
      not initialized if a log file is not specified on the command line.  This
      causes an immediate segfault on systems that fill allocated memory with some
      value other than zero (my FreeBSD machine uses 0xD0).
      
      Several crashes later I discovered that args->user, password, host, and port
      are also used without being initialized.
      
      This doesn't appear to be fixed in CVS and I came up empty on a mailing list
      search -- hope it hasn't been reported already.
      
      Craig Boston
      15b5d6cf
    • Bruce Momjian's avatar
      The attached patch enables contrib/cube to build cleanly under Cygwin · 5ef01a28
      Bruce Momjian authored
      (again).  Please consider this patch for the 7.4.1 branch (if there will
      be one) too.
      
       Jason Tishler
      5ef01a28
    • Bruce Momjian's avatar
      This patch refactors execTuples.c in two ways. · ffb087ce
      Bruce Momjian authored
      Neil Conway
      ffb087ce
    • Bruce Momjian's avatar
      Hi, this doco patch is a quick one to add explicit mention of the need · 8f61184d
      Bruce Momjian authored
      for the AT clause in threaded ECPG applications.
      
      Philip Yarra
      8f61184d
    • Bruce Momjian's avatar
      This makes help like this: · 8c4af96f
      Bruce Momjian authored
         \lo_export LOBOID FILE
         \lo_import FILE [COMMENT]
         \lo_list
         \lo_unlink LOBOID    large object operations
      
      Instead of not saying anything about what arguments are required.
      
      Christopher Kings-Lynne
      8c4af96f
    • Bruce Momjian's avatar
      Win32 patch for Makefile.shlib · c217b36e
      Bruce Momjian authored
      Claudio Natoli
      c217b36e
    • Bruce Momjian's avatar
      Update for patches applied: · 9be15f4d
      Bruce Momjian authored
      < * Change factorial to return a numeric
      > * -Change factorial to return a numeric (Gavin)
      258c258
      < * Allow psql \du to show groups, and add \dg for groups
      > * -Allow psql \du to show groups, and add \dg for groups
      9be15f4d
    • Bruce Momjian's avatar
      attached is a patch that adds display of the groups a user belongs to to · 8bb60b64
      Bruce Momjian authored
      \du and a \dg command to psql. It's against 7.4beta5.
      
      Markus Bertheau <twanger@bluetwanger.de>
      8bb60b64
    • Tom Lane's avatar
      Avoid assuming that type key_t is 32 bits, since it reportedly isn't · 5e2b99db
      Tom Lane authored
      on 64-bit Solaris.  Use a non-system-dependent datatype for UsedShmemSegID,
      namely unsigned long (which we were already assuming could hold a shmem
      key anyway, cf RecordSharedMemoryInLockFile).
      5e2b99db
    • Bruce Momjian's avatar
      This patch reduces some unsightly #ifdefs, and fixes two typos in · 35ddc2ed
      Bruce Momjian authored
      comments in the psql code. This doesn't make any functional change, so
      feel free to save it for 7.5
      
      Neil Conway
      35ddc2ed
    • Bruce Momjian's avatar
      This patch finishes off the work that I did with making view · abd5d75c
      Bruce Momjian authored
      definitions use pretty printing.
      
      It does:
      
      * Pretty index predicates
      * Pretty rule definitions
      * Uppercases PRIMARY KEY and UNIQUE to be consistent with CHECK and
      FOREIGN KEY
      * View rules are improved to match table rules:
      
      
      Christopher Kings-Lynne
      abd5d75c
    • Bruce Momjian's avatar
      This patch adds a new GUC var, "default_with_oids", which follows the · 7ce9b7c0
      Bruce Momjian authored
      proposal for eventually deprecating OIDs on user tables that I posted
      earlier to pgsql-hackers. pg_dump now always specifies WITH OIDS or
      WITHOUT OIDS when dumping a table. The documentation has been updated.
      
      Neil Conway
      7ce9b7c0
    • Bruce Momjian's avatar
      Try to reduce confusion about what is a lock method identifier, a lock · e7ca8674
      Bruce Momjian authored
      method control structure, or a table of control structures.
      
      . Use type LOCKMASK where an int is not a counter.
      
      . Get rid of INVALID_TABLEID, use INVALID_LOCKMETHOD instead.
      
      . Use INVALID_LOCKMETHOD instead of (LOCKMETHOD) NULL, because
        LOCKMETHOD is not a pointer.
      
      . Define and use macro LockMethodIsValid.
      
      . Rename LOCKMETHOD to LOCKMETHODID.
      
      . Remove global variable LongTermTableId in lmgr.c, because it is
        never used.
      
      . Make LockTableId static in lmgr.c, because it is used nowhere else.
        Why not remove it and use DEFAULT_LOCKMETHOD?
      
      . Rename the lock method control structure from LOCKMETHODTABLE to
        LockMethodData.  Introduce a pointer type named LockMethod.
      
      . Remove elog(FATAL) after InitLockTable() call in
        CreateSharedMemoryAndSemaphores(), because if something goes wrong,
        there is elog(FATAL) in LockMethodTableInit(), and if this doesn't
        help, an elog(ERROR) in InitLockTable() is promoted to FATAL.
      
      . Make InitLockTable() void, because its only caller does not use its
        return value any more.
      
      . Rename variables in lock.c to avoid statements like
              LockMethodTable[NumLockMethods] = lockMethodTable;
              lockMethodTable = LockMethodTable[lockmethod];
      
      . Change LOCKMETHODID type to uint16 to fit into struct LOCKTAG.
      
      . Remove static variables BITS_OFF and BITS_ON from lock.c, because
        I agree to this doubt:
       * XXX is a fetch from a static array really faster than a shift?
      
      . Define and use macros LOCKBIT_ON/OFF.
      
      
      Manfred Koizar
      e7ca8674
    • Bruce Momjian's avatar
    • Bruce Momjian's avatar
      Attached is a patch implementing factorial(), returning numeric. Points · 04a4821a
      Bruce Momjian authored
      to note:
      
      1) arttype is numeric. I thought this was the best way of allowing
      arbitarily large factorials, even though factorial(2^63) is a large
      number. Happy to change to integers if this is overkill.
      2) since we're accepting numeric arguments, the patch tests for floats.
      If a numeric is passed with non-zero decimal portion, an error is raised
      since (from memory) they are undefined.
      
      Gavin Sherry
      04a4821a