1. 02 May, 2010 2 commits
    • Simon Riggs's avatar
      Mention that max_standby_delay has units of milliseconds. Units are mentioned · 98bbab47
      Simon Riggs authored
      for all other parameters where the default is expressed in a different unit.
      98bbab47
    • Tom Lane's avatar
      Clean up some awkward, inaccurate, and inefficient processing around · f9ed327f
      Tom Lane authored
      MaxStandbyDelay.  Use the GUC units mechanism for the value, and choose more
      appropriate timestamp functions for performing tests with it.  Make the
      ps_activity manipulation in ResolveRecoveryConflictWithVirtualXIDs have
      behavior similar to ps_activity code elsewhere, notably not updating the
      display when update_process_title is off and not truncating the display
      contents at an arbitrarily-chosen length.  Improve the docs to be explicit
      about what MaxStandbyDelay actually measures, viz the difference between
      primary and standby servers' clocks, and the possible hazards if their clocks
      aren't in sync.
      f9ed327f
  2. 01 May, 2010 4 commits
    • Tom Lane's avatar
      Add code to InternalIpcMemoryCreate() to handle the case where shmget() · 15416323
      Tom Lane authored
      returns EINVAL for an existing shared memory segment.  Although it's not
      terribly sensible, that behavior does meet the POSIX spec because EINVAL
      is the appropriate error code when the existing segment is smaller than the
      requested size, and the spec explicitly disclaims any particular ordering of
      error checks.  Moreover, it does in fact happen on OS X and probably other
      BSD-derived kernels.  (We were able to talk NetBSD into changing their code,
      but purging that behavior from the wild completely seems unlikely to happen.)
      We need to distinguish collision with a pre-existing segment from invalid size
      request in order to behave sensibly, so it's worth some extra code here to get
      it right.  Per report from Gavin Kistner and subsequent investigation.
      
      Back-patch to all supported versions, since any of them could get used
      with a kernel having the debatable behavior.
      15416323
    • Tom Lane's avatar
      Install hack workaround for failure of 'make all' in VPATH builds. · 170456c9
      Tom Lane authored
      It appears that gmake gets confused if postgres.sgml is not present in
      the working directory, and instantiates some default rule or other that
      would let postgres.sgml be built from postgres.xml.  I haven't been able
      to track down exactly where that's coming from, but the problem can be
      dodged by specifying srcdir explicitly in the rule for postgres.xml.
      Per report from Vladimir Kokovic.
      170456c9
    • Tom Lane's avatar
      Adjust postgres.xml rule so that make will notice a failure exit from osx. · f856fad8
      Tom Lane authored
      The previous coding had it in a pipe, which on most shells won't report
      the error.  Per experimentation with a bug report from Vladimir Kokovic.
      This doesn't actually fix his problem, but it does explain why make
      didn't report that there was a problem.
      f856fad8
    • Tom Lane's avatar
      Fix leakage of proc-related storage in plpython's inline handler. · f5c23ca2
      Tom Lane authored
      Per report from Andres Freund.
      f5c23ca2
  3. 30 Apr, 2010 6 commits
  4. 29 Apr, 2010 7 commits
  5. 28 Apr, 2010 14 commits
  6. 27 Apr, 2010 2 commits
  7. 26 Apr, 2010 5 commits