COPY for CSVs
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.
cheers
andrew
Attachments:
csv.patchtext/plain; name=csv.patchDownload+209-28
Andrew Dunstan wrote:
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
Andrew Dunstan wrote:
Andrew Dunstan wrote:
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.
version attached that does copy out as well as copy in. I am not sure
about the multibyte stuff, so that needs careful review.
cheers
andrew