Re: SQL COPY syntax extension (was: Performance on inserts)
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hannu Krosing <hannu@tm.ee>
Cc: Thomas Lockhart <lockhart@alumni.caltech.edu>, Oliver Teuber <teuber@abyss.devicen.de>, Matthew Kirkwood <matthew@hairy.beasts.org>, pgsql-hackers@postgresql.org
Date: 2000-08-28T21:14:30Z
Lists: pgsql-hackers
Hannu Krosing <hannu@tm.ee> writes: > What I actually had in mind was a more SQL-like syntax for copy, > i.e. no default arguments, all fields required etc. that would we easy > to bolt on current copy machinery but still use 'SQL' syntax (no . or > \. or \\. for EOD, NULL for NULL values, quotes around strings ...) Seems like a reasonable idea, although I'd recommend sticking to the convention that \. on a line means EOD, to avoid having to hack the client-side libraries. As long as you leave that alone, libpq, libpgtcl, etc etc should be transparent to the copy data format. regards, tom lane