How does pg index page optimize dead tuples?

From: "jacktby(at)gmail(dot)com" <jacktby(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: How does pg index page optimize dead tuples?
Date: 2023-04-20 01:42:26
Message-ID: 2023042009422409511415@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)com

Browse pgsql-hackers by date

  From Date Subject
Next Message Melanie Plageman 2023-04-20 01:45:32 Re: Remove io prefix from pg_stat_io columns
Previous Message jacktby@gmail.com 2023-04-20 01:40:32 Howdoes; pg; index; page; optimize; dead; tuples?;