Re: Start-up script for few clusters: just add water?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Eustace Scrubb <piotr(dot)kublicki(at)iop(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Start-up script for few clusters: just add water?
Date: 2010-04-26 19:43:50
Message-ID: 20100426194350.GD3963@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-04-26 20:10:48 Re: gmake check problem
Previous Message jkunkel 2010-04-26 19:41:36 gmake check problem