CLUSTER not in multi-command string?

From: Michael Monnerie <michael(dot)monnerie(at)is(dot)it-management(dot)at>
To: pgsql-admin(at)postgresql(dot)org
Subject: CLUSTER not in multi-command string?
Date: 2009-04-29 04:12:29
Message-ID: 200904290612.34545@zmi.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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'

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Monnerie 2009-04-29 05:08:07 Re: CLUSTER not in multi-command string?
Previous Message Michael Monnerie 2009-04-29 03:36:04 Re: yast sles9.3 stopped all postgres instance