Re: persistant psql feature suggestion

From: PeterKorman <calvin-pgsql-ml(at)eigenvision(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: persistant psql feature suggestion
Date: 2003-06-29 15:40:48
Message-ID: 20030629154048.GA11500@eigenvision.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-06-29 15:42:21 Re: join_references: variable not in subplan target lists
Previous Message Bruno Wolff III 2003-06-29 15:34:52 Re: Week numbers and years