Skip to content
Snippets Groups Projects
  1. Aug 29, 2004
  2. Aug 28, 2004
  3. Aug 27, 2004
    • Tom Lane's avatar
      Fix Windows emulation of kill(pid, 0). This will now succeed, but only · 3e3f70a2
      Tom Lane authored
      if the target PID is a PG postmaster or backend --- for our purposes that
      is actually better than the Unix behavior.  Per Dave Page and Andrew Dunstan.
      3e3f70a2
    • Tom Lane's avatar
      Introduce local hash table for lock state, as per recent proposal. · 1785aceb
      Tom Lane authored
      PROCLOCK structs in shared memory now have only a bitmask for held
      locks, rather than counts (making them 40 bytes smaller, which is a
      good thing).  Multiple locks within a transaction are counted in the
      local hash table instead, and we have provision for tracking which
      ResourceOwner each count belongs to.  Solves recently reported problem
      with memory leakage within long transactions.
      1785aceb
  4. Aug 26, 2004
  5. Aug 25, 2004
    • Tom Lane's avatar
      Fix typo in comment, per Andrew Dunstan. · 7584194c
      Tom Lane authored
      7584194c
    • Tom Lane's avatar
      Revise ResourceOwner code to avoid accumulating ResourceOwner objects · fe455ee1
      Tom Lane authored
      for every command executed within a transaction.  For long transactions
      this was a significant memory leak.  Instead, we can delete a portal's
      or subtransaction's ResourceOwner immediately, if we physically transfer
      the information about its locks up to the parent owner.  This does not
      fully solve the leak problem; we need to do something about counting
      multiple acquisitions of the same lock in order to fix it.  But it's a
      necessary step along the way.
      fe455ee1
  6. Aug 24, 2004
  7. Aug 22, 2004
    • Tom Lane's avatar
      Tweak code so that pg_subtrans is never consulted for XIDs older than · f009c316
      Tom Lane authored
      RecentXmin (== MyProc->xmin).  This ensures that it will be safe to
      truncate pg_subtrans at RecentGlobalXmin, which should largely eliminate
      any fear of bloat.  Along the way, eliminate SubTransXidsHaveCommonAncestor,
      which isn't really needed and could not give a trustworthy result anyway
      under the lookback restriction.
      In an unrelated but nearby change, #ifdef out GetUndoRecPtr, which has
      been dead code since 2001 and seems unlikely to ever be resurrected.
      f009c316
    • Tom Lane's avatar
      Code review for ALTER INDEX patch. · 37d937ea
      Tom Lane authored
      37d937ea
  8. Aug 21, 2004
Loading