Transactions, tuples, and VACUUM

Поиск
Список
Период
Сортировка
От Matt Clark
Тема Transactions, tuples, and VACUUM
Дата
Msg-id OAEAKHEHCMLBLIDGAFELAEKFDGAA.matt@ymogen.net
обсуждение исходный текст
Ответ на Re: Backup routine  ("scott.marlowe" <scott.marlowe@ihs.com>)
Ответы Re: Transactions, tuples, and VACUUM  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Morning all, bit of a general question here...

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, or are the two updates
'merged'
when the transaction is committed?  Or is the answer 'sometimes' (I would guess depending on checkpoints)?

Cheers

Matt






В списке pgsql-admin по дате отправления:

Предыдущее
От: "mathan"
Дата:
Сообщение: How to test Miscellaneous Functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Transactions, tuples, and VACUUM