1. 12 Jul, 2007 9 commits
  2. 11 Jul, 2007 2 commits
  3. 10 Jul, 2007 4 commits
  4. 09 Jul, 2007 3 commits
  5. 08 Jul, 2007 8 commits
  6. 07 Jul, 2007 2 commits
  7. 06 Jul, 2007 3 commits
  8. 05 Jul, 2007 1 commit
  9. 03 Jul, 2007 2 commits
  10. 02 Jul, 2007 2 commits
    • Magnus Hagander's avatar
      - Fix the -w (wait) option to work in Windows service mode, per bug #3382. · a1587e41
      Magnus Hagander authored
      - Prevent the -w option being passed to the postmaster.
      - Read the postmaster options file when starting as a Windows service.
      
      Dave Page
      a1587e41
    • Tom Lane's avatar
      Fix failure to restart Postgres when Linux kernel returns EIDRM for shmctl(). · 1c7fe33f
      Tom Lane authored
      This is a Linux kernel bug that apparently exists in every extant kernel
      version: sometimes shmctl() will fail with EIDRM when EINVAL is correct.
      We were assuming that EIDRM indicates a possible conflict with pre-existing
      backends, and refusing to start the postmaster when this happens.  Fortunately,
      there does not seem to be any case where Linux can legitimately return EIDRM
      (it doesn't track shmem segments in a way that would allow that), so we can
      get away with just assuming that EIDRM means EINVAL on this platform.
      
      Per reports from Michael Fuhr and Jon Lapham --- it's a bit surprising
      we have not seen more reports, actually.
      1c7fe33f
  11. 01 Jul, 2007 4 commits
    • Magnus Hagander's avatar
      454333a6
    • Tom Lane's avatar
      Reduce the maximum sleep interval in the autovac launcher to 1 second, · bce7bacd
      Tom Lane authored
      so that it responds to SIGQUIT reasonably promptly even on machines where
      SA_RESTART signals restart a sleep from scratch.  (This whole area could
      stand some rethinking, but for now make it work like the other processes
      do.)  Also some marginal stylistic cleanups.
      bce7bacd
    • Tom Lane's avatar
      Treat the autovac launcher more like a regular backend, in that we wait · 421d5027
      Tom Lane authored
      for it to die before telling the bgwriter to initiate shutdown checkpoint.
      Since it's connected to shared memory, this seems more prudent than the
      alternative of letting it quit asynchronously.  Resolves my complaint
      of yesterday about repeated shutdown checkpoints in CVS HEAD.
      421d5027
    • Tom Lane's avatar
      Avoid memory leakage when a series of subtransactions invoke AFTER triggers · 8f55b9a8
      Tom Lane authored
      that are fired at end-of-statement (as is the normal case for foreign keys,
      for example).  In this situation the per-subxact deferred trigger context
      is always empty when subtransaction exit is reached; so we could free it,
      but were not doing so, leading to an intratransaction leak of 8K or more
      per subtransaction.  Per off-list example from Viatcheslav Kalinin
      subsequent to bug #3418 (his original bug report omitted a foreign key
      constraint needed to cause this leak).
      
      Back-patch to 8.2; prior versions were not using per-subxact contexts
      for deferred triggers, so did not have this leak.
      8f55b9a8