Re: Pre-allocated free space for row - Mailing list pgsql-hackers

From Zeugswetter Andreas DAZ SD
Subject Re: Pre-allocated free space for row
Date
Msg-id E1539E0ED7043848906A8FF995BDA57966FB39@m0143.s-mxs.net
Whole thread Raw
Responses Re: Pre-allocated free space for row
List pgsql-hackers
> > My wild guess is that deleting all index pointers for a removed
index
> > is more-or-less the same cost as creating new ones for
> > inserted/updated page.
>
> Only if you are willing to make the removal process
> recalculate the index keys from looking at the deleted tuple.

The bgwriter could "update" all columns of dead heap tuples in heap
pages
to NULL and thus also gain free space without the need to touch the
indexes.
The slot would stay used but it would need less space.

Andreas


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: On hardcoded type aliases and typmod for user types
Next
From: Tom Lane
Date:
Subject: Re: Pre-allocated free space for row