l Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] Behalf Of
>> [EMAIL PROTECTED]
>> Sent: Thursday, June 26, 2003 2:20 PM
>> To: pgsql hackers list
>> Subject: [HACKERS] A portable code question
>>
>>
>> In the little fix I came up w
> Assuming you're using file streams to write to the pipe, fflush() will do
> the trick.
The problem is that the pipe (from \o |tee ) is intermingling writes
to stdout by tee with direct writes to stdout from within psql.
I do issue a fflush, because that's necessary to make the pipe do its
Assuming you're using file streams to write to the pipe, fflush() will do
the trick.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, June 26, 2003 2:20 PM
> To: pgsql hackers list
> Sub
In the little fix I came up with for psql last night, I need to be able
to ensure that something sent to a pipe (and then to stdout) completes
before issuing the prompt directly to stdout.
I did this with: "system ('sleep 1');", but I'm fairly sure that is
not portable nor does it ENSURE compl