COPY table FROM STDIN doesn't show count tag - Mailing list pgsql-hackers

From Rajeev rastogi
Subject COPY table FROM STDIN doesn't show count tag
Date
Msg-id BF2827DCCE55594C8D7A8F7FFD3AB7713DD7E31D@SZXEML508-MBX.china.huawei.com
Whole thread Raw
Responses 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  (Amit Khandekar <amit.khandekar@enterprisedb.com>)
List 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

pgsql-hackers by date:

Previous
From: Stéphan BEUZE
Date:
Subject: Re: ERROR : 'tuple concurrently updated'
Next
From: Andrew Dunstan
Date:
Subject: Re: Multiple psql -c / -f options