Re: COPY table FROM STDIN doesn't show count tag

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: COPY table FROM STDIN doesn't show count tag
Дата
Msg-id 17600.1394648799@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: COPY table FROM STDIN doesn't show count tag  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: COPY table FROM STDIN doesn't show count tag  (Rajeev rastogi <rajeev.rastogi@huawei.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Mar 12, 2014 at 12:09 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> My inclination now (see later traffic) is to suppress the
>> status report when the COPY destination is the same as pset.queryFout
>> (ie, a simple test whether the FILE pointers are equal).  This would
>> suppress the status report for "\copy to stdout" and "COPY TO STDOUT"
>> cases, and also for "\copy to pstdout" if you'd not redirected queryFout
>> with \o.

> This is reasonably similar to what we already do for SELECT, isn't it?
>  I mean, the server always sends back a command tag, but psql
> sometimes opts not to print it.

Right, the analogy to SELECT gives some comfort that this is reasonable.
        regards, tom lane



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: db_user_namespace a "temporary measure"
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: Patch: Show process IDs of processes holding a lock; show relation and tuple infos of a lock to acquire