Re: where is the output

Поиск
Список
Период
Сортировка
Искать
От
Michael Fuhr
Тема
Re: where is the output
Дата
Msg-id
20051223201834.GA72599@winnie.fuhr.org
Ответ на
Re: where is the output (ohp@pyrenet.fr)
Список
Дерево обсуждения
where is the output ohp@pyrenet.fr
Re: where is the output Martijn van Oosterhout <kleptog@svana.org>
Re: where is the output Michael Fuhr <mike@fuhr.org>
Re: where is the output ohp@pyrenet.fr
Re: where is the output Michael Fuhr <mike@fuhr.org>
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 по дате отправления
От: Tom Lane
Дата:
От: Qingqing Zhou
Дата:
Сообщение: Questions related to xlog
FAQ