Home > Archive > PostgreSQL SQL > February 2006 > strange quoted csv behavior with COPY









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author strange quoted csv behavior with COPY
George Pavlov

2006-02-02, 1:24 pm

what would you expect the following command to insert into column a:

copy foo (a,b) from stdin with csv;
"bar" , 3
\.

i was expecting to see 'bar', but instead i get 'bar ' (the spaces
between the double quote and the comma get inserted.

select length(a), * from foo;
length | a | b
--------+--------+---
6 | bar | 3

is this by design? what is the use of the quote in this context?

i am on 8.0.6.

george

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com