Re: Transactions, tuples, and VACUUM

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Matt Clark" <matt(at)ymogen(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Transactions, tuples, and VACUUM
Date: 2003-08-14 11:38:55
Message-ID: 15525.1060861135@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Matt Clark" <matt(at)ymogen(dot)net> writes:
> consider:
> begin;
> update a set col1 = 'p' where id = '1';
> update a set col2 = 'q' where id = '1';
> commit;
> versus:
> update a set col1 = 'p', col2 = 'q' where id = '1';

> Does the first case generate any more dead tuples that will need
> vacuuming than the second case,

Yes. Takes twice as long, too.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message luke 2003-08-14 14:12:18 Import data from postgres 7.0 to 7.3.4
Previous Message Matt Clark 2003-08-14 10:01:27 Transactions, tuples, and VACUUM