Re: persistant psql feature suggestion

Поиск
Список
Период
Сортировка
От PeterKorman
Тема Re: persistant psql feature suggestion
Дата
Msg-id 20030629154048.GA11500@eigenvision.com
обсуждение исходный текст
Ответ на Re: persistant psql feature suggestion  ("Andrew Dunstan" <andrew@dunslane.net>)
Список pgsql-hackers
On Sun, Jun 29, 2003 at 10:22:49AM -0400, Andrew Dunstan wrote:
> OK, worked out the wrinkle. psql is behaving perfectly well, but the shim
> doesn't get a SIGPIPE until it tries to write to it after psql has exited.
> 
> A slightly hackish fix for this would be to put this line after the "print
> $_" line:
> 
>   if ($_ eq "\\q\n") { sleep 1; print " "; } # get SIGPIPE if client gone
> 
> cheers
> 
> andrew

NAME
IPC::Open2, open2 - open a process for both reading and writing 

http://www.perl.com/doc/manual/html/lib/IPC/Open2.html

Would this help?


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Week numbers and years
Следующее
От: Tom Lane
Дата:
Сообщение: Re: join_references: variable not in subplan target lists