Checking that Pg is running from a shell script

Поиск
Список
Период
Сортировка
От Fran Fabrizio
Тема Checking that Pg is running from a shell script
Дата
Msg-id 3D04B7B2.80701@mmrd.com
обсуждение исходный текст
Ответы Re: Checking that Pg is running from a shell script  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: Checking that Pg is running from a shell script  (Thomas Beutin <tyrone@laokoon.IN-Berlin.DE>)
Re: Checking that Pg is running from a shell script  (Lamar Owen <lamar.owen@wgcr.org>)
Список pgsql-general
What's the best way to ensure that Pg is running from a shell script?
 I'm crafting a few RPMs for my projects, one of which will attempt to
load data into a database, but I want to check that it's running first
before I try this.

I'm a shell scripting newbie so apologies if the answer is really
straightforward.  I don't know if UNIX processes leave a standard trail
so that I could just look up if something is listening on 5432, for
example.

Thanks,
Fran


В списке pgsql-general по дате отправления:

Предыдущее
От: Doug Fields
Дата:
Сообщение: Re: Non-linear Performance
Следующее
От: Ron Snyder
Дата:
Сообщение: Re: Slow connection