Re: How to lose transaction history (xmin values, WAL, etc.)?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: How to lose transaction history (xmin values, WAL, etc.)?
Дата
Msg-id 1274373556-sup-1171@alvh.no-ip.org
обсуждение исходный текст
Ответ на How to lose transaction history (xmin values, WAL, etc.)?  (Richard Walker <richard@softimp.com.au>)
Ответы Re: How to lose transaction history (xmin values, WAL, etc.)?  (Richard Walker <richard@softimp.com.au>)
Список pgsql-general
Excerpts from Richard Walker's message of jue may 20 02:19:17 -0400 2010:

> (a) (ii) It seems a breach is possible via the xmin values.
> In that case, what about doing updates inside a transaction
> that does a trivial update of all rows, e.g.:
>    begin transaction;
>    update mytable ....; -- change one row
>    update mytable set id=id; -- change all rows
>    commit;
> So now all rows have the same xmin values.
> Does this work?  Performance is not so good, is it?
> Is there a better way?

The easiest way to do this is probably VACUUM FREEZE.

--

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

Предыдущее
От: Giancarlo Boaron
Дата:
Сообщение: Re: [PHP] Some undefined function errors
Следующее
От: Ashley Sheridan
Дата:
Сообщение: Re: [PHP] Some undefined function errors