Re: CLUSTER ALL syntax - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CLUSTER ALL syntax
Date
Msg-id 21265.1037583364@sss.pgh.pa.us
Whole thread Raw
In response to Re: CLUSTER ALL syntax  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-hackers
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> What I don't understand is what are the parameters in the
> ReindexDatabase function for.  For example, the boolean all is always
> false in tcop/utility.c (and there are no other places that the function
> is called).  Also, the database name is checked to be equal to a
> "constant" value, the database name that the standalone backend is
> connected to.  Why are those useful?

Well, passing all=true would implement REINDEX ALL ...

As for the database name, we could perhaps change the syntax to just
REINDEX DATABASE; not sure if it's worth the trouble.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: CLUSTER ALL syntax
Next
From: "Christopher Kings-Lynne"
Date:
Subject: FW: PostgreSQL 7.3 Platform Testing