Trying to understand page structures in PG

From: Rakesh Kumar <rakeshkumar464a3(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Trying to understand page structures in PG
Date: 2016-04-06 09:39:00
Message-ID: CAJBB=EXXbgzB_ae=0qHivA1FkTrRVZKSaoP1jvZLh687NXOmrA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

I understand that when an update of say 100,000 rows are made, PG
writes the updated rows as a new row. These new rows are not visible
to any sessions except the one creating it. At commit time PG flips
something internally to make these rows visible to all.

My Q: what happens to those rows which use to contain the values
before the update. Shouldn't something change in those rows to
indicate that those rows are no longer valid. Who does it chain those
rows to the new rows.

thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tobia Conforto 2016-04-06 10:15:19 Re: Exclude constraint using custom operator
Previous Message yuri.ivanenko@progforce.com 2016-04-06 09:29:56 Re: comparing two JSON objects in 9.3