]> granicus.if.org Git - postgresql/commit
Fix broken logic in lazy_vacuum_heap.
authorRobert Haas <rhaas@postgresql.org>
Fri, 13 Jan 2012 13:22:31 +0000 (08:22 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 13 Jan 2012 13:22:31 +0000 (08:22 -0500)
commitd0dcb315db0043f10073a9a244cea138e9e60edd
treefccdc33a4c93b1cdc675c417013bd8736e50cf64
parent4d0b11a0ca347e5b0304004625b7eb6752e32ee7
Fix broken logic in lazy_vacuum_heap.

As noted by Tom Lane, the previous coding in this area, which I
introduced in commit bbb6e559c4ea0fb4c346beda76736451dc24eb4e, was
poorly tested and caused the vacuum's second heap to go into what would
have been an infinite loop but for the fact that it eventually caused a
memory allocation failure.  This version seems to work better.
src/backend/commands/vacuumlazy.c