1. 06 Jun, 2001 1 commit
    • Tom Lane's avatar
      Adjust WAL code so that checkpoints truncate the xlog at the previous · 1173344e
      Tom Lane authored
      checkpoint's redo pointer, not its undo pointer, per discussion in
      pghackers a few days ago.  No point in hanging onto undo information
      until we have the ability to do something with it --- and this solves
      a rather large problem with log space for long-running transactions.
      Also, change all calls of write() to detect the case where write
      returned a count less than requested, but failed to set errno.
      Presume that this situation indicates ENOSPC, and give the appropriate
      error message, rather than a random message associated with the previous
      value of errno.
      1173344e
  2. 01 Jun, 2001 1 commit
  3. 18 May, 2001 1 commit
  4. 08 May, 2001 1 commit
  5. 16 Apr, 2001 1 commit
  6. 22 Mar, 2001 1 commit
  7. 18 Mar, 2001 1 commit
  8. 13 Mar, 2001 1 commit
    • Tom Lane's avatar
      XLOG (and related) changes: · 4d14fe00
      Tom Lane authored
      * 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. 27 Jan, 2001 1 commit
  10. 24 Jan, 2001 1 commit
  11. 29 Nov, 2000 1 commit
    • Tom Lane's avatar
      Get rid of not-very-portable fcntl(F_SETLK) mechanism for locking the Unix · 792b0f46
      Tom Lane authored
      socket file, in favor of having an ordinary lockfile beside the socket file.
      Clean up a few robustness problems in the lockfile code.  If postmaster is
      going to reject a connection request based on database state, it will now
      tell you so before authentication exchange not after.  (Of course, a failure
      after is still possible if conditions change meanwhile, but this makes life
      easier for a yet-to-be-written pg_ping utility.)
      792b0f46
  12. 17 Nov, 2000 1 commit
  13. 16 Nov, 2000 1 commit
  14. 04 Nov, 2000 1 commit
  15. 19 Sep, 2000 1 commit
  16. 06 Sep, 2000 1 commit
    • Peter Eisentraut's avatar
      Code cleanup of user name and user id handling in the backend. The current · 6dc24961
      Peter Eisentraut authored
      user is now defined in terms of the user id, the user name is only computed
      upon request (for display purposes). This is kind of the opposite of the
      previous state, which would maintain the user name and compute the user id
      for permission checks.
      
      Besides perhaps saving a few cycles (integer vs string), this now creates a
      single point of attack for changing the user id during a connection, for
      purposes of "setuid" functions, etc.
      6dc24961
  17. 03 Aug, 2000 1 commit
  18. 14 Jul, 2000 1 commit
  19. 02 Jul, 2000 1 commit
  20. 14 Jun, 2000 1 commit
    • Peter Eisentraut's avatar
      Big warnings cleanup for Solaris/GCC. Down to about 40 now, but · 44d1abeb
      Peter Eisentraut authored
      we'll get there one day.
      
      Use `cat' to create aclocal.m4, not `aclocal'. Some people don't
      have automake installed.
      
      Only run the autoconf rule in the top-level GNUmakefile if the
      invoker specified `make configure', don't run it automatically
      because of CVS timestamp skew.
      44d1abeb
  21. 13 Jun, 2000 1 commit
  22. 08 Jun, 2000 1 commit
  23. 02 Jun, 2000 1 commit
  24. 02 May, 2000 1 commit
    • Tatsuo Ishii's avatar
      Modify getdatabaseencoding(), pg_encoding_to_char() · 832877e9
      Tatsuo Ishii authored
      pg_char_to_encoding() in multibyte disbaled case so that it does not
      throw an error, rather return HARD CODED default value (currently SQL_ASCII).
      This would solve the "non-mb backend vs. mb-enabled frontend" problem.
      832877e9
  25. 12 Apr, 2000 1 commit
  26. 18 Feb, 2000 1 commit
  27. 26 Jan, 2000 1 commit
    • Bruce Momjian's avatar
      Add: · 5c25d602
      Bruce Momjian authored
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  28. 19 Jan, 2000 1 commit
  29. 18 Jan, 2000 2 commits
  30. 13 Jan, 2000 1 commit
  31. 09 Jan, 2000 1 commit
  32. 24 Nov, 1999 1 commit
  33. 22 Nov, 1999 1 commit
  34. 06 Oct, 1999 1 commit
  35. 17 Jul, 1999 1 commit
  36. 16 Jul, 1999 2 commits
  37. 15 Jul, 1999 2 commits