Performance improvement for MultiRecordFreeSpace on large relations ---
Tom Lane <tgl@sss.pgh.pa.us>
Performance improvement for MultiRecordFreeSpace on large relations --- avoid O(N^2) behavior. Problem noted and fixed by Stephen Marshall <smarshall@wsicorp.com>, with some help from Tom Lane.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/vacuum.c | modified | +19 −21 |
| src/backend/commands/vacuumlazy.c | modified | +53 −47 |
| src/backend/storage/freespace/freespace.c | modified | +95 −71 |
| src/backend/storage/smgr/smgr.c | modified | +2 −4 |
| src/include/storage/freespace.h | modified | +12 −4 |