Attached is an undocumented patch that implements COPY for CSVs according to the scheme recently discussed. I believe it handles all the straightforward and perverse cases that were discussed (including multiline fields and partially quoted fields).
I have done some light testing on it, but would appreciate some assistance with testing, as well as any useful review comments.
Looking back over the discussion, I see that there was demand for the ability to export as well as import CSVs.
That will actually be rather easier to do, so I will revise the patch accordingly.
cheers
andrew
---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives?
http://archives.postgresql.org