Re: Transactions, tuples, and VACUUM - Mailing list pgsql-admin

From Tom Lane
Subject Re: Transactions, tuples, and VACUUM
Date
Msg-id 15525.1060861135@sss.pgh.pa.us
Whole thread Raw
In response to Transactions, tuples, and VACUUM  ("Matt Clark" <matt@ymogen.net>)
List pgsql-admin
"Matt Clark" <matt@ymogen.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

pgsql-admin by date:

Previous
From: "Matt Clark"
Date:
Subject: Transactions, tuples, and VACUUM
Next
From: "Priya G"
Date:
Subject: forcce a table in memory