From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: CSV patch applied |
Date: | 2004-04-20 15:41:09 |
Message-ID: | 200404201541.i3KFf9S12748@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Fabien COELHO wrote:
>
> > >> CSV - enable CSV mode
> > >> QUOTE - specify quote character
> > >> ESCAPE - specify escape character
> > >> FORCE - force quoting of specified columns
> > >
> > >FORCE QUOTE
>
> QUOTING col1,col2?
> QUOTED col1,col2?
> IN QUOTES col1,cold
>
> > >> LITERAL - prevent NULL checks for specific columns
> > >
> > >NO NULL CHECK
>
> QUOTED (meaning 'as quoted')?
>
> From a language design point of view, I think it may be better to stick
> to one word versions?
I understand, and we tried that. The confusion is that FORCE forces
quotes on non-NULL values, while LITERAL forces quotes on NULL values,
so while both deal with quoting, their functionality is different for
input and output. They same single keyword just seemed confusing.
This is why the two-keyword idea sounds good to me --- we use the word
QUOTE (already a keyword), and then say FORCE for output, and NULL for
input:
FORCE QUOTE
QUOTE NULL
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew T. O'Connor | 2004-04-20 15:48:05 | Re: pg_autovacuum crashes when query fails for temp tables |
Previous Message | Bruce Momjian | 2004-04-20 15:25:51 | pg_autovacuum crashes when query fails for temp tables |
From | Date | Subject | |
---|---|---|---|
Next Message | Michiel Ephraim | 2004-04-20 21:57:14 | Re: build annoyences |
Previous Message | Andrew Dunstan | 2004-04-20 15:04:24 | Re: COPY CSV keywords |