Fix logic error in insert_fsm_page_entry: because compact_fsm_page_list

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 386f1809a7db5c4d610ea8ba7cd702e699f1b4a9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2002-01-24T15:31:43Z
Releases: 7.2.1
Fix logic error in insert_fsm_page_entry: because compact_fsm_page_list
removes any empty chunks, the chunk previously added won't be there
anymore, so it's possible there is zero free space in the rel's page list
afterwards.  Must loop back and rerun the part that adds a chunk to
the list.

Files

PathChange+/−
src/backend/storage/freespace/freespace.c modified +46 −51