1. 07 Apr, 2011 1 commit
    • Tom Lane's avatar
      Revise the API for GUC variable assign hooks. · 2594cf0e
      Tom Lane authored
      The previous functions of assign hooks are now split between check hooks
      and assign hooks, where the former can fail but the latter shouldn't.
      Aside from being conceptually clearer, this approach exposes the
      "canonicalized" form of the variable value to guc.c without having to do
      an actual assignment.  And that lets us fix the problem recently noted by
      Bernd Helmle that the auto-tune patch for wal_buffers resulted in bogus
      log messages about "parameter "wal_buffers" cannot be changed without
      restarting the server".  There may be some speed advantage too, because
      this design lets hook functions avoid re-parsing variable values when
      restoring a previous state after a rollback (they can store a pre-parsed
      representation of the value instead).  This patch also resolves a
      longstanding annoyance about custom error messages from variable assign
      hooks: they should modify, not appear separately from, guc.c's own message
      about "invalid parameter value".
      2594cf0e
  2. 06 Apr, 2011 3 commits
  3. 05 Apr, 2011 5 commits
  4. 04 Apr, 2011 10 commits
  5. 03 Apr, 2011 3 commits
    • Robert Haas's avatar
      Improve documentation on the range of the numeric data type. · cabf5d84
      Robert Haas authored
      Gianni Ciolli, reviewed by Noah Misch
      cabf5d84
    • Robert Haas's avatar
      Remove mention of using "man" from the tutorial. · 1981fb73
      Robert Haas authored
      This isn't applicable on Windows, and the internal link to the
      psql documentation should be more than sufficient.
      
      Susanne Ebrecht
      1981fb73
    • Robert Haas's avatar
      Avoid possible hang during smart shutdown. · 38b27792
      Robert Haas authored
      If a smart shutdown occurs just as a child is starting up, and the
      child subsequently becomes a walsender, there is a race condition:
      the postmaster might count the exstant backends, determine that there
      is one normal backend, and wait for it to die off.  Had the walsender
      transition already occurred before the postmaster counted, it would
      have proceeded with the shutdown.
      
      To fix this, have each child that transforms into a walsender kick
      the postmaster just after doing so, so that the state machine is
      certain to advance.
      
      Fujii Masao
      38b27792
  6. 02 Apr, 2011 2 commits
  7. 01 Apr, 2011 6 commits
  8. 31 Mar, 2011 5 commits
  9. 30 Mar, 2011 5 commits