Re: Start-up script for few clusters: just add water? - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Start-up script for few clusters: just add water?
Date
Msg-id 20100426194350.GD3963@alvh.no-ip.org
Whole thread Raw
In response to Start-up script for few clusters: just add water?  (Eustace Scrubb <piotr.kublicki@iop.org>)
List pgsql-general
Eustace Scrubb wrote:

> Such script will start only one cluster during server rebooting. Can I just
> add more clusters in PGDATA in the file, something like this:
>
> PGPORT=5566
> PGDATA=/db/first_cluster
> PGPORT=5567
> PGDATA=/db/second_cluster
> PGPORT=5568
> PGDATA=/db/third_cluster
>
> Will it work?

Certainly not.  You could add a loop that sets the variables and calls
the start code, but it's new code you'd add, not just those lines above.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

Previous
From: jkunkel@laurcat.com
Date:
Subject: gmake check problem
Next
From: Tom Lane
Date:
Subject: Re: gmake check problem