dbTalk Databases Forums  

[BUGS] COPY TO STDOUT BINARY

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] COPY TO STDOUT BINARY in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andreas Pflug
 
Posts: n/a

Default [BUGS] COPY TO STDOUT BINARY - 12-13-2005 , 06:12 AM






Is COPY foo TO STDOUT BINARY supposed to work? The query will run some
time, but won't give a result.

I couldn't see any mentioning in the COPY command docs that would
prohibit use of this combination.

Tested with psql on 8.0.5 and 8.1.1.

Regards,
Andreas

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] COPY TO STDOUT BINARY - 12-13-2005 , 09:43 AM






Andreas Pflug <pgadmin (AT) pse-consulting (DOT) de> writes:
Quote:
Is COPY foo TO STDOUT BINARY supposed to work?
I don't think psql will do anything particularly sane with binary copy
data, if that's what you meant.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
  #3  
Old   
Andreas Pflug
 
Posts: n/a

Default Re: [BUGS] COPY TO STDOUT BINARY - 12-13-2005 , 10:48 AM



Tom Lane wrote:
Quote:
Andreas Pflug <pgadmin (AT) pse-consulting (DOT) de> writes:

Is COPY foo TO STDOUT BINARY supposed to work?


I don't think psql will do anything particularly sane with binary copy
data, if that's what you meant.
echo "COPY foo TO STDOUT BINARY;" | psql >bar

writes a 0 bytes file; not surprised if psql doesn't act sanely in
interactive mode.

For testing, I changed slony to use COPY .. BINARY, same result.

Regards,
Andreas

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.