Re: [HACKERS] Bug or feature? COPY ignores column defaults

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [HACKERS] Bug or feature? COPY ignores column defaults
Дата
Msg-id 36B07027.4CEEE72E@krs.ru
обсуждение исходный текст
Ответ на Bug or feature? COPY ignores column defaults  ("Oliver Elphick" <olly@lfix.co.uk>)
Ответы Re: [HACKERS] Bug or feature? COPY ignores column defaults  (jwieck@debis.com (Jan Wieck))
Re: [HACKERS] Bug or feature? COPY ignores column defaults  ("Oliver Elphick" <olly@lfix.co.uk>)
Re: [HACKERS] Bug or feature? COPY ignores column defaults  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Oliver Elphick wrote:
> 
> At release 6.4.2, COPY does not respect column defaults:
> 
> INSERT works correctly, however.
> 
> Is this intentional, or a bug?

This is standard behaviour. DEFAULT value is sabstituted
only if column value (including NULL) is not specified in 
INSERT statement. 

Vadim


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Oliver Elphick"
Дата:
Сообщение: Bug or feature? COPY ignores column defaults
Следующее
От: Oleg Broytmann
Дата:
Сообщение: Re: [HACKERS] Death!