1. 23 Dec, 2010 1 commit
  2. 22 Dec, 2010 4 commits
  3. 21 Dec, 2010 2 commits
    • Robert Haas's avatar
      Fix typos. · c5160b7e
      Robert Haas authored
      Andreas Karlsson
      c5160b7e
    • Robert Haas's avatar
      Work around unfortunate getppid() behavior on BSD-ish systems. · 24ecde77
      Robert Haas authored
      On MacOS X, and apparently also on other BSD-derived systems, attaching
      a debugger causes getppid() to return the pid of the debugging process
      rather than the actual parent PID.  As a result, debugging the
      autovacuum launcher, startup process, or WAL sender on such systems
      causes it to exit, because the previous coding of PostmasterIsAlive()
      detects postmaster death by testing whether getppid() == PostmasterPid.
      
      Work around that behavior by checking the return value of getppid()
      more carefully.  If it's PostmasterPid, the postmaster must be alive;
      if it's 1, assume the postmaster is dead.  If it's any other value,
      assume we've been debugged and fall through to the less-reliable
      kill() test.
      
      Review by Tom Lane.
      24ecde77
  4. 20 Dec, 2010 2 commits
  5. 19 Dec, 2010 4 commits
    • Magnus Hagander's avatar
      Remove thread dumping constant that requires newer Platform SDK · d382828f
      Magnus Hagander authored
      Since we're not multithreaded it only provides marginally useful
      information, and it does require a newer version of the Platform SDK
      than we target. We may want to reconsider this in the future along
      with a fix for MinGW.
      d382828f
    • Tom Lane's avatar
      Fix up handling of simple-form CASE with constant test expression. · 1b19e2c0
      Tom Lane authored
      eval_const_expressions() can replace CaseTestExprs with constants when
      the surrounding CASE's test expression is a constant.  This confuses
      ruleutils.c's heuristic for deparsing simple-form CASEs, leading to
      Assert failures or "unexpected CASE WHEN clause" errors.  I had put in
      a hack solution for that years ago (see commit
      514ce7a3 of 2006-10-01), but bug #5794
      from Peter Speck shows that that solution failed to cover all cases.
      
      Fortunately, there's a much better way, which came to me upon reflecting
      that Peter's "CASE TRUE WHEN" seemed pretty redundant: we can "simplify"
      the simple-form CASE to the general form of CASE, by simply omitting the
      constant test expression from the rebuilt CASE construct.  This is
      intuitively valid because there is no need for the executor to evaluate
      the test expression at runtime; it will never be referenced, because any
      CaseTestExprs that would have referenced it are now replaced by constants.
      This won't save a whole lot of cycles, since evaluating a Const is pretty
      cheap, but a cycle saved is a cycle earned.  In any case it beats kluging
      ruleutils.c still further.  So this patch improves const-simplification
      and reverts the previous change in ruleutils.c.
      
      Back-patch to all supported branches.  The bug exists in 8.1 too, but it's
      out of warranty.
      1b19e2c0
    • Tom Lane's avatar
      Fix erroneous parsing of tsquery input "... & !(subexpression) | ..." · abc10262
      Tom Lane authored
      After parsing a parenthesized subexpression, we must pop all pending
      ANDs and NOTs off the stack, just like the case for a simple operand.
      Per bug #5793.
      
      Also fix clones of this routine in contrib/intarray and contrib/ltree,
      where input of types query_int and ltxtquery had the same problem.
      
      Back-patch to all supported versions.
      abc10262
    • Magnus Hagander's avatar
      Support for collecting crash dumps on Windows · dcb09b59
      Magnus Hagander authored
      Add support for collecting "minidump" style crash dumps on
      Windows, by setting up an exception handling filter. Crash
      dumps will be generated in PGDATA/crashdumps if the directory
      is created (the existance of the directory is used as on/off
      switch for the generation of the dumps).
      
      Craig Ringer and Magnus Hagander
      dcb09b59
  6. 18 Dec, 2010 2 commits
  7. 17 Dec, 2010 5 commits
  8. 16 Dec, 2010 11 commits
  9. 15 Dec, 2010 2 commits
  10. 14 Dec, 2010 4 commits
  11. 13 Dec, 2010 3 commits