1. 02 11月, 2004 4 次提交
    • B
      Add comment about memory failure of get_progname exiting the postmaster: · b0830e39
      Bruce Momjian 提交于
                  exit(1);    /* This could exit the postmaster */
      b0830e39
    • T
      timestamptz_trunc() should only recalculate the timezone when truncating · c4acbb84
      Tom Lane 提交于
      to DAY precision or coarser; leave the timezone alone when precision is
      HOUR or less.  This avoids surprises for inputs near a DST transition
      time, as per example from Matthew Gabeler-Lee.  (The only reason we
      recalculate at all is so that outputs that are supposed to represent
      days will come out as local midnight, and that's not relevant for sub-day
      precision.)
      c4acbb84
    • T
      Invent pg_next_dst_boundary() and rewrite DetermineLocalTimeZone() to · 5ba04cd9
      Tom Lane 提交于
      use it, as per my proposal of yesterday.  This gives us a means of
      determining the zone offset to impute to an unlabeled timestamp that
      is both efficient and reliable, unlike all our previous tries involving
      mktime() and localtime().  The behavior for invalid or ambiguous times
      at a DST transition is fixed to be really and truly "assume standard
      time", fixing a bug that has come and gone repeatedly but was back
      again in 7.4.  (There is some ongoing discussion about whether we should
      raise an error instead, but for the moment I'll make it do what it was
      previously intended to do.)
      5ba04cd9
    • B
      That's just the lovely way windows handles a "segfault". Gotta be really · 7fad5fff
      Bruce Momjian 提交于
      interesting for MS to catch all those dumps...
      
      Anyway. Oops. Seems I ran my regression tests with the old psql, and
      just managed to update the backend, when I tested that patch. Turns out
      there are codepaths where we'd access the Critical Section before it was
      initialized. Attached patch breaks the initializeation off to a separate
      part and adds that one to a much earlier position in the program.
      
      Magnus Hagander
      7fad5fff
  2. 01 11月, 2004 8 次提交
  3. 31 10月, 2004 3 次提交
    • T
      Invent a new, more thread-safe version of PQrequestCancel, called PQcancel. · 44e8a968
      Tom Lane 提交于
      Use this new function in psql.  Implement query cancellation in psql for
      Windows.  Code by Magnus Hagander, documentation and minor editorialization
      by Tom Lane.
      44e8a968
    • T
      I found a corner case in which it is possible for RI_FKey_check's call · 80559fa9
      Tom Lane 提交于
      of HeapTupleSatisfiesItself() to trigger a hint-bit update on the tuple:
      if the row was updated or deleted by a subtransaction of my own transaction
      that was later rolled back.  This cannot occur in pre-8.0 of course, so
      the hint-bit patch applied a couple weeks ago is OK for existing releases.
      But for 8.0 it seems we had better fix things so that RI_FKey_check can
      pass the correct buffer number to HeapTupleSatisfiesItself.  Accordingly,
      add fields to the TriggerData struct to carry the buffer ID(s) for the
      old and new tuple(s).  There are other possible solutions but this one
      seems cleanest; it will allow other AFTER-trigger functions to safely
      do tqual.c calls if they want to.  Put new fields at end of struct so
      that there is no API breakage.
      80559fa9
    • T
      Change COMMIT back to the old behavior of emitting command tag COMMIT, · 88868d4f
      Tom Lane 提交于
      not ROLLBACK, for the case of COMMIT outside a transaction block.
      Alvaro Herrera
      88868d4f
  4. 30 10月, 2004 6 次提交
  5. 29 10月, 2004 6 次提交
  6. 28 10月, 2004 9 次提交
  7. 27 10月, 2004 4 次提交