Re: How indexes are updated

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Bob Powell" <Bob(at)hotchkiss(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How indexes are updated
Date: 2003-06-18 21:48:44
Message-ID: 4554.1055972924@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Bob Powell" <Bob(at)hotchkiss(dot)org> writes:
> I think I have proven to myself that when a new record is added to a table it is added to the end of the table. Also, when a record in a table is updated it is also moved to the bottom of the table.

Only if there's not any free space that could hold the record earlier in
the table. (The free space has to not only exist, but be entered in the
FSM, though, so there are cases where there might be free space
available but the backend doesn't know about it.)

> Can someone tell me when the indexes on the columns in the table are
> updated.

Immediately after insertion of the record.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-06-18 21:49:51 Re: can't "grant all on database..."
Previous Message Tom Lane 2003-06-18 21:42:18 Re: Building pgeasy on HP-UX