Fix for VACUUM in psql autocommit off

Поиск
Список
Период
Сортировка
От Michael Paesold
Тема Fix for VACUUM in psql autocommit off
Дата
Msg-id 00a201c49e7c$c7ee6800$d604460a@zaphod
обсуждение исходный текст
Ответы Re: Fix for VACUUM in psql autocommit off
Список pgsql-patches
In current cvs (as in version 7.4.5), VACUUM does not work at all in
autocommit=off mode. That is, because psql does not know that VACUUM cannot
be performed inside an transaction.

Even if you do
ROLLBACK; VACUUM;
it will internally issue a ROLLBACK; BEGIN; VACUUM;

I consider this a bug and suggest the attached fix. is_transact_command() in
src/bin/psql/common.c is used to determine if a command is a transaction
modifying command. The diff just adds "vacuum" to those commands, so that
psql will not issue a BEGIN before a VACUUM.

Best Regards,
Michael Paesold

Вложения

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

Предыдущее
От: LELARGE Guillaume
Дата:
Сообщение: Re: French translation updates for 7.4 and 7.5
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fix for VACUUM in psql autocommit off