Re: Transaction Performance Question - Mailing list pgsql-general

From scott.marlowe
Subject Re: Transaction Performance Question
Date
Msg-id Pine.LNX.4.33.0310300747310.23153-100000@css120.ihs.com
Whole thread Raw
In response to Transaction Performance Question  ("Rick Gigger" <rick@alpinenetworking.com>)
List pgsql-general
On Wed, 29 Oct 2003, Rick Gigger wrote:

> In the following situation:
>
> You do a large transaction where lots of rows are update
> All of your tables/indexes cached in memory
>
> When are the updated rows written out to disk?  When they are updated inside
> the transaction, or when the transaction is completed?

The data is written out but not made real, so to speak, during each
update.  I.e. the updates individually add all these rows.  At the end of
the transaction, if we rollback, all the tuples that were written out are
simply not committed, and therefore the last version of that record
remains the last one in the chain.

If the transaction is committed then each tuple becomes the last in its
chain (could it be second to last because of other transactions?  I'm not
sure.)


pgsql-general by date:

Previous
From: "scott.marlowe"
Date:
Subject: Re: pg_ctl vs full restart
Next
From: Scott Chapman
Date:
Subject: Re: Automatic auditing suggestion