How does pg index page optimize dead tuples? - Mailing list pgsql-hackers

From jacktby@gmail.com
Subject How does pg index page optimize dead tuples?
Date
Msg-id 2023042009422409511415@gmail.com
Whole thread Raw
List pgsql-hackers
As far as I know, when a index page is full, if you insert a new tuple here, you will split it into two pages.
But pg won't delete the half tuples in the old page in real. So if there is another tuple inserted into this old
page, will pg split it again? I think that's not true, so how it solve this one? please give me a code example,thanks.

jacktby@gmail.com

pgsql-hackers by date:

Previous
From: "jacktby@gmail.com"
Date:
Subject: Howdoes; pg; index; page; optimize; dead; tuples?;
Next
From: Melanie Plageman
Date:
Subject: Re: Remove io prefix from pg_stat_io columns