1. 23 Nov, 2007 2 commits
  2. 22 Nov, 2007 6 commits
  3. 21 Nov, 2007 5 commits
  4. 20 Nov, 2007 15 commits
  5. 19 Nov, 2007 7 commits
  6. 18 Nov, 2007 1 commit
  7. 17 Nov, 2007 2 commits
  8. 16 Nov, 2007 2 commits
    • Tom Lane's avatar
      Improve GIN index build's tracking of memory usage by using · 6f4cfe48
      Tom Lane authored
      GetMemoryChunkSpace, not just the palloc request size.  This brings the
      allocatedMemory counter close enough to reality (as measured by
      MemoryContextStats printouts) that I think we can get rid of the arbitrary
      factor-of-2 adjustment that was put into the code initially.  Given the
      sensitivity of GIN build to work memory size, not using as much of work
      memory as we're allowed to seems a pretty bad idea.
      6f4cfe48
    • Tom Lane's avatar
      GIN index build's allocatedMemory counter needs to be long, not uint32. · 16dcd5e5
      Tom Lane authored
      Else, in a 64-bit machine with maintenance_work_mem set to above 4Gb,
      the counter overflows and we never recognize having reached the
      maintenance_work_mem limit.  I believe this explains out-of-memory
      failure recently reported by Sean Davis.
      
      This is a bug, so backpatch to 8.2.
      16dcd5e5