Re: CLUSTER not in multi-command string?

Поиск
Список
Период
Сортировка
От Michael Monnerie
Тема Re: CLUSTER not in multi-command string?
Дата
Msg-id 200904290708.14627@zmi.at
обсуждение исходный текст
Ответ на CLUSTER not in multi-command string?  (Michael Monnerie <michael.monnerie@is.it-management.at>)
Список pgsql-admin
On Mittwoch 29 April 2009 Michael Monnerie wrote:
> ERROR:  CLUSTER cannot be executed from a function or multi-command
> string
>
> I got this error from a script which tried:
> psql -U postgres db1 -c 'cluster ; analyze'
>
> In the docs there's no word that it's not possible, and I wonder why
> this is not allowed. Anybody knows? It's stupid, as I want to cluster
> lots of tables, followed by analyze, and now I have to
> psql -U postgres db1 -c 'cluster'
> psql -U postgres db1 -c 'analyze'

I looked further now: Above error was from Postgres 8.3.5 on openSUSE
11.1, but it used to work on Postgres 8.1.11 from openSUSE 10.2. Why did
it become worse?

mfg zmi
--
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0660 / 415 65 31                      .network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38  500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net                  Key-ID: 1C1209B4


Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: CLUSTER not in multi-command string?
Следующее
От: Robert Ladyman
Дата:
Сообщение: Re: Anyone tried storing software users as database users?