postgres on the comman line

Поиск
Список
Период
Сортировка
От Michael Höller
Тема postgres on the comman line
Дата
Msg-id 1EIRYH-16Qhai0@fwd29.aul.t-online.de
обсуждение исходный текст
Ответы Re: postgres on the comman line  (Thomas Pundt <mlists@rp-online.de>)
Re: postgres on the comman line  ("A. Kretschmer" <akretschmer@despammed.com>)
Re: postgres on the comman line  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Список pgsql-sql

Hello,

I like to automate a daily check and like to run select statement via
cron but this seems to be more tricky than I thought....

I tried the following:
su postgres -c "select count(*) from TABLE where xxxxxx;"

I have the probelm that I am allways asked for the password - I did not
find a way how to pass the password. 

Also I like to direct the result to a file, I assume I can do this via >
but not haveing passed the first problem I did not check this. 

I am happy for every hint

Thanks a lot 
Michael





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

Предыдущее
От: Hannes Dorbath
Дата:
Сообщение: Re: Copy Views From Database?
Следующее
От: Thomas Pundt
Дата:
Сообщение: Re: postgres on the comman line