COPY table FROM STDIN doesn't show count tag

From: Rajeev rastogi <rajeev(dot)rastogi(at)huawei(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: COPY table FROM STDIN doesn't show count tag
Date: 2013-10-18 11:37:47
Message-ID: BF2827DCCE55594C8D7A8F7FFD3AB7713DD7E31D@SZXEML508-MBX.china.huawei.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

From the following mail, copy behaviour between stdin and normal file having some inconsistency.
http://www.postgresql.org/message-id/CE85A517.4878E%tim.kane@gmail.com

The issue was that if copy execute "from stdin", then it goes to the server to execute the command and then server request for the input, it sends back the control to client to enter the data. So once client sends the input to server, server execute the copy command and sends back the result to client but client does not print the result instead it just clear it out.
Changes are made to ensure the final result from server get printed before clearing the result.

Please find the patch for the same and let me know your suggestions.

Thanks and Regards,
Kumar Rajeev Rastogi

Attachment Content-Type Size
copydefect.patch application/octet-stream 3.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Cédric Villemain 2013-10-18 11:41:28 Re: ERROR : 'tuple concurrently updated'
Previous Message Michael Paquier 2013-10-18 11:26:17 Re: Turning recovery.conf into GUCs