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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Start-up script for few clusters: just add water?
Дата
Msg-id 20100426194350.GD3963@alvh.no-ip.org
обсуждение исходный текст
Ответ на Start-up script for few clusters: just add water?  (Eustace Scrubb <piotr.kublicki@iop.org>)
Список 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 по дате отправления:

Предыдущее
От: jkunkel@laurcat.com
Дата:
Сообщение: gmake check problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: gmake check problem