Re: COPY enhancements
| От | Robert Haas |
|---|---|
| Тема | Re: COPY enhancements |
| Дата | |
| Msg-id | 603c8f070909110834l4cc950baj108684d306f3ee0@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: COPY enhancements (Pierre Frédéric Caillaud<lists@peufeu.com>) |
| Ответы |
Re: COPY enhancements
|
| Список | pgsql-hackers |
2009/9/11 Pierre Frédéric Caillaud <lists@peufeu.com>:
>> I was thinking something like:
>>
>> COPY tablename [ ( column [, ...] ) ] FROM { 'filename' | STDIN }
>> [WITH] [option [, ...]]
>>
>> Where:
>>
>> option := ColId [Sconst] | FORCE NOT NULL (column [,...])
>>
>> I don't see any reasonable way to sandwhich the FORCE NOT NULL syntax
>> into a keyword/value notation.
>
> Postgres has a hstore data type which seems well suited for passing
> key/value option pairs...
> Why another syntax to remember, another parser to code, when almost
> everything is already there ?
>
> Think about plpgsql code which generates some SQL COPY command
> string, then this is parsed and executed... wouldn't it be a lot simpler to
> just manipulate parameters in a hstore ?...
I doubt it very much.
...Robert
В списке pgsql-hackers по дате отправления: