From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: psql \COPY accepts multiple NULL AS |
Date: | 2007-09-14 03:06:54 |
Message-ID: | 200709140306.l8E36sX16788@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-patches |
This has been saved for the 8.4 release:
http://momjian.postgresql.org/cgi-bin/pgpatches_hold
---------------------------------------------------------------------------
Stephen Frost wrote:
-- Start of PGP signed section.
> Greetings,
>
> psql seems to accept syntax which would be rejected by the server,
> which seems a bit odd:
>
> sfrost*=# \copy billing_data from ../BillingSamplePricerFile.csv
> with csv header quote as '"' null as 'abc' null as '123'
> ERROR: invalid input syntax for integer: ""
>
> vs.
>
> sfrost=# copy billing_data from stdin
> with csv header quote as '"' null as 'abc' null as '123';
> ERROR: conflicting or redundant options
>
> Now, honestly, I'd like to see support for multiple 'NULL AS' strings,
> but till that's added it'd probably be best if psql error'd on this
> like the backend does rather than accepting it and then not doing it.
>
> Thanks!
>
> Stephen
-- End of PGP section, PGP failed!
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Cédric Villemain | 2007-09-14 08:21:24 | Re: CREATE USER and createuser not working the same |
Previous Message | Bruce Momjian | 2007-09-14 02:43:23 | Re: BUG #3486: doc bug - Preventing transaction ID wraparound failures |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2007-09-14 03:37:30 | Re: Reduce the size of PageFreeSpaceInfo on 64bit platform |
Previous Message | Bruce Momjian | 2007-09-13 23:56:20 | Re: WIP: rewrite numeric division |