1. 14 3月, 2001 1 次提交
  2. 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
  3. 09 3月, 2001 1 次提交
  4. 24 2月, 2001 1 次提交
  5. 18 2月, 2001 1 次提交
  6. 25 1月, 2001 1 次提交
  7. 24 1月, 2001 2 次提交
  8. 20 1月, 2001 1 次提交
  9. 17 1月, 2001 1 次提交
  10. 14 1月, 2001 1 次提交
  11. 13 1月, 2001 1 次提交
    • T
      Add more critical-section calls: all code sections that hold spinlocks · 6162432d
      Tom Lane 提交于
      are now critical sections, so as to ensure die() won't interrupt us while
      we are munging shared-memory data structures.  Avoid insecure intermediate
      states in some code that proc_exit will call, like palloc/pfree.  Rename
      START/END_CRIT_CODE to START/END_CRIT_SECTION, since that seems to be
      what people tend to call them anyway, and make them be called with () like
      a function call, in hopes of not confusing pg_indent.
      I doubt that this is sufficient to make SIGTERM safe anywhere; there's
      just too much code that could get invoked during proc_exit().
      6162432d
  12. 07 1月, 2001 1 次提交
  13. 21 12月, 2000 1 次提交
    • T
      Prevent freshly-started backend from ignoring SIGUSR1, per race condition · 39b547f4
      Tom Lane 提交于
      observed by Inoue.  Also, don't call ProcRemove() from postmaster if we
      have detected a backend crash --- too risky if shared memory is corrupted.
      It's not needed anyway, considering we are going to reinitialize shared
      memory and semaphores as soon as the last child is dead.
      39b547f4
  14. 19 12月, 2000 2 次提交
    • B
      >> Here is a patch for the beos port (All regression tests are OK). · 1f159e56
      Bruce Momjian 提交于
      >>     xlog.c : special case for beos to avoid 'link' which does not work yet
      >>     beos/sem.c : implementation of new sem_ctl call (GETPID) and a new
      >sem_op
      >> flag (IPCNOWAIT)
      >>     dynloader/beos.c : add a verification of symbol validity (seem that
      the
      >> loader sometime return OK with an invalid symbol)
      >>     postmaster.c :  add beos forking support for the new checkpoint
      process
      >>     postgres.c : remove beos special case for getrusage
      >>     beos.h : Correction of a bas definition of AF_UNIX, misc defnitions
      >>
      >>
      >>     thanks
      >>
      >>
      >>             cyril
      
      Cyril VELTER
      1f159e56
    • T
      Ensure that 'errno' is saved and restored by all signal handlers that · 5491233f
      Tom Lane 提交于
      might change it.  Experimentation shows that the signal handler call
      mechanism does not save/restore errno for you, at least not on Linux
      or HPUX, so this is definitely a real risk.
      5491233f
  15. 18 12月, 2000 1 次提交
  16. 03 12月, 2000 1 次提交
  17. 30 11月, 2000 2 次提交
    • V
      all options are allowed if not under postmaster: · 9f20852f
      Vadim B. Mikheev 提交于
         SetConfigOption(name, value,
              (IsUnderPostmaster) ? PGC_BACKEND : PGC_POSTMASTER);
      9f20852f
    • T
      Get rid of not-very-portable fcntl(F_SETLK) mechanism for locking the Unix · 792b0f46
      Tom Lane 提交于
      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
  18. 26 11月, 2000 2 次提交
  19. 22 11月, 2000 1 次提交
  20. 15 11月, 2000 1 次提交
  21. 09 11月, 2000 1 次提交
  22. 07 11月, 2000 1 次提交
  23. 04 11月, 2000 1 次提交
  24. 29 10月, 2000 1 次提交
  25. 28 10月, 2000 1 次提交
  26. 27 10月, 2000 1 次提交
  27. 25 10月, 2000 1 次提交
  28. 07 10月, 2000 3 次提交
    • B
      The beos port in the source tree doesn't even compile. and even · 7ea8403c
      Bruce Momjian 提交于
      after that dynamic loading isn't working and shared memory handling is
      broken.
      
              Attached with this message, there is a Zip file which contain :
      
              * beos.diff = patch file generated with difforig
              * beos = folder with beos support files which need to be moved in /
      src/backend/port
              * expected = foler with three file for message and precision
      difference in regression test
              * regression.diff = rule problem (need to kill the backend manualy)
              * dynloader = dynloader files (they are also in the pacth files,
      but there is so much modification that I have join full files)
      
              Everything works except a problem in 'rules' Is there some problems
      with rules in the current tree ? It used to works with last week tree.
      
      Cyril VELTER
      7ea8403c
    • T
      94952948
    • T
      Arrange that no database accesses are attempted during parser() --- this · fbd26d69
      Tom Lane 提交于
      took some rejiggering of typename and ACL parsing, as well as moving
      parse_analyze call out of parser().  Restructure postgres.c processing
      so that parse analysis and rewrite are skipped when in abort-transaction
      state.  Only COMMIT and ABORT statements will be processed beyond the raw
      parser() phase.  This addresses problem of parser failing with database access
      errors while in aborted state (see pghackers discussions around 7/28/00).
      Also fix some bugs with COMMIT/ABORT statements appearing in the middle of
      a single query input string.
      Function, operator, and aggregate arguments/results can now use full
      TypeName production, in particular foo[] for array types.
      DROP OPERATOR and COMMENT ON OPERATOR were broken for unary operators.
      Allow CREATE AGGREGATE to accept unquoted numeric constants for initcond.
      fbd26d69
  29. 03 10月, 2000 2 次提交
  30. 06 9月, 2000 1 次提交
    • P
      Code cleanup of user name and user id handling in the backend. The current · 6dc24961
      Peter Eisentraut 提交于
      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
  31. 31 8月, 2000 1 次提交
  32. 29 8月, 2000 1 次提交
  33. 28 8月, 2000 1 次提交