1. 11 Jun, 2004 3 commits
    • Bruce Momjian's avatar
      This patch updates pgpipe() on win32 to log exactly which part of the · a28d04e6
      Bruce Momjian authored
      call fails when it does. (As it is now, there is no way to figure out
      the point of error). Shouldn't be a problem since it's most defintily
      not a performance-critical path (only called on pgstat startup ATM).
      
      This should help us debug the pipe error message that's on the win32
      status page (which I myself have never been able to reproduce, and thus
      haven't figured out a better way to debug yet)
      
      Magnus Hagander
      a28d04e6
    • Tom Lane's avatar
      When using extended-query protocol, postpone planning of unnamed statements · 7643bed5
      Tom Lane authored
      until Bind is received, so that actual parameter values are visible to the
      planner.  Make use of the parameter values for estimation purposes (but
      don't fold them into the actual plan).  This buys back most of the
      potential loss of plan quality that ensues from using out-of-line
      parameters instead of putting literal values right into the query text.
      
      This patch creates a notion of constant-folding expressions 'for
      estimation purposes only', in which case we can be more aggressive than
      the normal eval_const_expressions() logic can be.  Right now the only
      difference in behavior is inserting bound values for Params, but it will
      be interesting to look at other possibilities.  One that we've seen
      come up repeatedly is reducing now() and related functions to current
      values, so that queries like ... WHERE timestampcol > now() - '1 day'
      have some chance of being planned effectively.
      
      Oliver Jowett, with some kibitzing from Tom Lane.
      7643bed5
    • Bruce Momjian's avatar
  2. 10 Jun, 2004 19 commits
  3. 09 Jun, 2004 9 commits
  4. 08 Jun, 2004 6 commits
  5. 07 Jun, 2004 3 commits