This used to work in 8.2: psql postgres -c "VACUUM table1; SELECT now()" But in cvs head it throws an error: ERROR: VACUUM cannot be executed from a function or multi-command string This must be because of the recent changes to PreventTransactionChain. Should we try to keep the old behavior for backwards-compatibility? The change will break some people's scripts, that's the way I noticed it. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com
Heikki Linnakangas <heikki@enterprisedb.com> writes:
> This used to work in 8.2:
> psql postgres -c "VACUUM table1; SELECT now()"
> But in cvs head it throws an error:
> ERROR: VACUUM cannot be executed from a function or multi-command string
That's intentional. It "worked" only for rather small values of "work".
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера