Re: where is the output - Mailing list pgsql-hackers

From Michael Fuhr
Subject Re: where is the output
Date
Msg-id 20051223201834.GA72599@winnie.fuhr.org
Whole thread Raw
In response to Re: where is the output  (ohp@pyrenet.fr)
List pgsql-hackers
On Fri, Dec 23, 2005 at 02:19:09PM +0100, ohp@pyrenet.fr wrote:
> But I'd still like to know in that case (the same goes for C I guess)
> where stdout is.
> Why isn't it connected by default to the input of whatever connected by
> dbconnect?

From the COPY documentation:
   When STDIN or STDOUT is specified, data is transmitted via the   connection between the client and the server.

I think the names STDIN and STDOUT are causing the confusion: they're
just the server's names for the client/server connection and don't
have anything to do with the client's stdin and stdout.  The client
writes data to and reads data from the connection using the API
functions for doing so; where the client gets or puts that data is
up to the application.

-- 
Michael Fuhr


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Fixing row comparison semantics
Next
From: Qingqing Zhou
Date:
Subject: Questions related to xlog