1. 04 Aug, 2007 4 commits
    • Neil Conway's avatar
      Tweak for initdb: if more command-line arguments were specified than · 087a2713
      Neil Conway authored
      expected, exit with an error, rather than complaining about the error
      on stderr but continuing onward.
      087a2713
    • Tom Lane's avatar
      Fix crash caused by log_timezone patch if we attempt to emit any elog messages · 4fd8d6b3
      Tom Lane authored
      between the setting of log_line_prefix and the setting of log_timezone.  We
      can't realistically set log_timezone any earlier than we do now, so the best
      behavior seems to be to use GMT zone if any timestamps are to be logged during
      early startup.  Create a dummy zone variable with a minimal definition of GMT
      (in particular it will never know about leap seconds), so that we can set it
      up without reference to any external files.
      4fd8d6b3
    • Tom Lane's avatar
      Fix a problem in my recent patch to initialize cancel_key for autovac workers · 0b9d3d4d
      Tom Lane authored
      as well as regular backends: if no regular backend launches before the autovac
      launcher tries to start an autovac worker, the postmaster would get an Assert
      fault due to calling PostmasterRandom before random_seed was initialized.
      Cleanest solution seems to be to take the initialization of random_seed out
      of ServerLoop and let PostmasterRandom do it for itself.
      0b9d3d4d
    • Tom Lane's avatar
      Switch over to using the src/timezone functions for formatting timestamps · bdd6b622
      Tom Lane authored
      displayed in the postmaster log.  This avoids Windows-specific problems with
      localized time zone names that are in the wrong encoding, and generally seems
      like a good idea to forestall other potential platform-dependent issues.
      To preserve the existing behavior that all backends will log in the same time
      zone, create a new GUC variable log_timezone that can only be changed on a
      system-wide basis, and reference log-related calculations to that zone instead
      of the TimeZone variable.
      
      This fixes the issue reported by Hiroshi Saito that timestamps printed by
      xlog.c startup could be improperly localized on Windows.  We still need a
      simpler patch for that problem in the back branches, however.
      bdd6b622
  2. 03 Aug, 2007 2 commits
  3. 02 Aug, 2007 3 commits
  4. 01 Aug, 2007 5 commits
  5. 31 Jul, 2007 3 commits
  6. 27 Jul, 2007 2 commits
  7. 26 Jul, 2007 1 commit
  8. 25 Jul, 2007 9 commits
  9. 24 Jul, 2007 5 commits
  10. 23 Jul, 2007 5 commits
  11. 21 Jul, 2007 1 commit
    • Tom Lane's avatar
      Fix elog.c to avoid infinite recursion (leading to backend crash) when · a0dab332
      Tom Lane authored
      log_min_error_statement is active and there is some problem in logging the
      current query string; for example, that it's too long to include in the log
      message without running out of memory.  This problem has existed since the
      log_min_error_statement feature was introduced.  No doubt the reason it
      wasn't detected long ago is that 8.2 is the first release that defaults
      log_min_error_statement to less than PANIC level.
      Per report from Bill Moran.
      a0dab332