Re: [HACKERS] Vacuum in multi-statement

2007-04-04 Thread Tom Lane
Heikki Linnakangas <[EMAIL PROTECTED]> 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 valu

[HACKERS] Vacuum in multi-statement

2007-04-04 Thread Heikki Linnakangas
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 f

[HACKERS] Vacuum in multi-statement

2007-04-04 Thread Heikki Linnakangas
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 f