1. 24 8月, 2001 1 次提交
  2. 11 8月, 2001 1 次提交
    • T
      Make OIDs optional, per discussions in pghackers. WITH OIDS is still the · bf56f075
      Tom Lane 提交于
      default, but OIDS are removed from many system catalogs that don't need them.
      Some interesting side effects: TOAST pointers are 20 bytes not 32 now;
      pg_description has a three-column key instead of one.
      
      Bugs fixed in passing: BINARY cursors work again; pg_class.relhaspkey
      has some usefulness; pg_dump dumps comments on indexes, rules, and
      triggers in a valid order.
      
      initdb forced.
      bf56f075
  3. 12 7月, 2001 1 次提交
  4. 25 5月, 2001 2 次提交
  5. 15 5月, 2001 1 次提交
  6. 22 3月, 2001 1 次提交
  7. 19 3月, 2001 1 次提交
  8. 13 3月, 2001 1 次提交
    • T
      XLOG (and related) changes: · 4d14fe00
      Tom Lane 提交于
      * Store two past checkpoint locations, not just one, in pg_control.
        On startup, we fall back to the older checkpoint if the newer one
        is unreadable.  Also, a physical copy of the newest checkpoint record
        is kept in pg_control for possible use in disaster recovery (ie,
        complete loss of pg_xlog).  Also add a version number for pg_control
        itself.  Remove archdir from pg_control; it ought to be a GUC
        parameter, not a special case (not that it's implemented yet anyway).
      
      * Suppress successive checkpoint records when nothing has been entered
        in the WAL log since the last one.  This is not so much to avoid I/O
        as to make it actually useful to keep track of the last two
        checkpoints.  If the things are right next to each other then there's
        not a lot of redundancy gained...
      
      * Change CRC scheme to a true 64-bit CRC, not a pair of 32-bit CRCs
        on alternate bytes.  Polynomial borrowed from ECMA DLT1 standard.
      
      * Fix XLOG record length handling so that it will work at BLCKSZ = 32k.
      
      * Change XID allocation to work more like OID allocation.  (This is of
        dubious necessity, but I think it's a good idea anyway.)
      
      * Fix a number of minor bugs, such as off-by-one logic for XLOG file
        wraparound at the 4 gig mark.
      
      * Add documentation and clean up some coding infelicities; move file
        format declarations out to include files where planned contrib
        utilities can get at them.
      
      * Checkpoint will now occur every CHECKPOINT_SEGMENTS log segments or
        every CHECKPOINT_TIMEOUT seconds, whichever comes first.  It is also
        possible to force a checkpoint by sending SIGUSR1 to the postmaster
        (undocumented feature...)
      
      * Defend against kill -9 postmaster by storing shmem block's key and ID
        in postmaster.pid lockfile, and checking at startup to ensure that no
        processes are still connected to old shmem block (if it still exists).
      
      * Switch backends to accept SIGQUIT rather than SIGUSR1 for emergency
        stop, for symmetry with postmaster and xlog utilities.  Clean up signal
        handling in bootstrap.c so that xlog utilities launched by postmaster
        will react to signals better.
      
      * Standalone bootstrap now grabs lockfile in target directory, as added
        insurance against running it in parallel with live postmaster.
      4d14fe00
  9. 25 1月, 2001 1 次提交
  10. 30 11月, 2000 1 次提交
  11. 22 11月, 2000 1 次提交
  12. 03 11月, 2000 1 次提交
  13. 29 10月, 2000 1 次提交
  14. 26 1月, 2000 1 次提交
    • B
      Add: · 5c25d602
      Bruce Momjian 提交于
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  15. 16 7月, 1999 1 次提交
  16. 10 6月, 1999 1 次提交
    • V
      1. Fix for elog(ERROR, "EvalPlanQual: t_xmin is uncommitted ?!") · 78f7ccc9
      Vadim B. Mikheev 提交于
         and possibly for other cases too:
      
         DO NOT cache status of transaction in unknown state
         (i.e. non-committed and non-aborted ones)
      
         Example:
         T1 reads row updated/inserted by running T2 and cache T2 status.
         T2 commits.
         Now T1 reads a row updated by T2 and with HEAP_XMAX_COMMITTED
         in t_infomask (so cached T2 status is not changed).
         Now T1 EvalPlanQual gets updated row version without HEAP_XMIN_COMMITTED
         -> TransactionIdDidCommit(t_xmin) and TransactionIdDidAbort(t_xmin)
         return FALSE and T2 decides that t_xmin is not committed and gets
         ERROR above.
      
         It's too late to find more smart way to handle such cases and so
         I just changed xact status caching and got rid TransactionIdFlushCache()
         from code.
      
         Changed: transam.c, xact.c, lmgr.c and transam.h - last three
         just because of TransactionIdFlushCache() is removed.
      
      2. heapam.c:
      
         T1 marked a row for update. T2 waits for T1 commit/abort.
         T1 commits. T3 updates the row before T2 locks row page.
         Now T2 sees that new row t_xmax is different from xact id (T1)
         T2 was waiting for. Old code did Assert here. New one goes to
         HeapTupleSatisfiesUpdate. Obvious changes too.
      
      3. Added Assert to vacuum.c
      4. bufmgr.c: break
         Assert(buf->r_locks == 0 && !buf->ri_lock)
         into two Asserts.
      78f7ccc9
  17. 26 5月, 1999 2 次提交
  18. 14 2月, 1999 1 次提交
  19. 18 12月, 1998 1 次提交
  20. 16 12月, 1998 1 次提交
  21. 01 9月, 1998 1 次提交
  22. 21 7月, 1998 1 次提交
  23. 26 2月, 1998 1 次提交
  24. 25 1月, 1998 1 次提交
  25. 02 11月, 1997 1 次提交
  26. 09 9月, 1997 2 次提交
  27. 08 9月, 1997 1 次提交
  28. 07 9月, 1997 1 次提交
  29. 20 8月, 1997 1 次提交
  30. 27 11月, 1996 1 次提交
  31. 10 11月, 1996 1 次提交
  32. 05 11月, 1996 1 次提交
  33. 01 11月, 1996 1 次提交
  34. 23 10月, 1996 1 次提交
  35. 28 8月, 1996 1 次提交