psql and named pipes

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема psql and named pipes
Дата
Msg-id 20080327165639.GM8764@alvh.no-ip.org
обсуждение исходный текст
Ответы Re: psql and named pipes  (Aidan Van Dyk <aidan@highrise.ca>)
Re: psql and named pipes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I was under the impression that I could start a "psql -f pipe" and then
feed it commands through the pipe using echo, and expect it to hang from
one command to the next.  Of course, this doesn't work -- my guess is
that echo sends an EOF after the line I send, so psql sees the EOF in
the pipe and terminates.

Does anyone have an idea how to go about this?  I was expecting to be
able to drive two psql sessions in parallel in a shell script -- sort of
poor man's concurrent psql :-(

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: Rainer Bauer
Дата:
Сообщение: Re: Windows shared_buffers limitations
Следующее
От: Aidan Van Dyk
Дата:
Сообщение: Re: psql and named pipes