Bill Moran <wmoran(at)potentialtech(dot)com> writes:
> I want to do this
> \copy table_name from 'table_name.cdf' delimiters ',';
> But I get:
> \copy: parse error at "delimiters"
Looking at the psql code, it evidently wants "with delimiter" ...
regression=# \copy table_name from 'table_name.cdf' with delimiter ','
table_name.cdf: No such file or directory
> The documentation I've found on \copy says to see the docs on copy ;)
It's *supposed* to match the backend syntax, but seems a few bricks
shy of a load at the moment. Anyone feel like fixing it? See
parse_slash_copy() in src/bin/psql/copy.c.
regards, tom lane