update/insert, delete/insert efficiency WRT vacuum and MVCC

Поиск
Список
Период
Сортировка
От Mark Woodward
Тема update/insert, delete/insert efficiency WRT vacuum and MVCC
Дата
Msg-id 18446.24.91.171.78.1151933328.squirrel@mail.mohawksoft.com
обсуждение исходный текст
Ответы Re: update/insert, delete/insert efficiency WRT vacuum and  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Список pgsql-hackers
Is there a difference in PostgreSQL performance between these two
different strategies:


if(!exec("update foo set bar='blahblah' where name = 'xx'"))   exec("insert into foo(name, bar)
values('xx','blahblah'");
or
exec("delete from foo where name = 'xx'");
exec("insert into foo(name, bar) values('xx','blahblah'");

In my session handler code I can do either, but am curious if it makes any
difference. Yes, "name" is unique.


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

Предыдущее
От: paolo romano
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Do a pass of code review for the ALTER TABLE
Следующее
От: paolo romano
Дата:
Сообщение: MultiXactID Wrap-Around