Re: Need help with bash script and postgresql

Поиск
Список
Период
Сортировка
От shakahshakah@gmail.com
Тема Re: Need help with bash script and postgresql
Дата
Msg-id 1185192561.860755.172380@k79g2000hse.googlegroups.com
обсуждение исходный текст
Ответ на Re: Need help with bash script and postgresql  (Raymond O'Donnell <rod@iol.ie>)
Список pgsql-general
On Jul 23, 6:11 am, r...@iol.ie ("Raymond O'Donnell") wrote:
> On 23/07/2007 11:04, Andy Dale wrote:
>
> > The posgres command in the loop should look like so (not sure about the
> > password):
>
> As I understand it, you supply the password via a pgpass file - you
> can't include it on the command line.
>
> Ray.
>
> ---------------------------------------------------------------
> Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
> r...@iol.ie
> ---------------------------------------------------------------

FWIW you can supply the password via a PGPASSWORD environment
variable, e.g.:

prompt$ PGPASSWORD=secret psql -h pghost -U pguser -d thedb -c "SELECT
'x'"


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

Предыдущее
От: "Andrus"
Дата:
Сообщение: invalid memory alloc request size 2147483648 using toode LIKE 'ä%'
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: varchar does not work too well with IS NOT NULL partial indexes.