Thread: pgsql/src/backend/storage/freespace freespace.c

pgsql/src/backend/storage/freespace freespace.c

From
tgl@postgresql.org
Date:
CVSROOT:    /cvsroot
Module name:    pgsql
Changes by:    tgl@postgresql.org    02/01/24 10:31:43

Modified files:
    src/backend/storage/freespace: freespace.c

Log message:
    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.