Re: [HACKERS] Bug or feature? COPY ignores column defaults - Mailing list pgsql-hackers

From Vadim Mikheev
Subject Re: [HACKERS] Bug or feature? COPY ignores column defaults
Date
Msg-id 36B07027.4CEEE72E@krs.ru
Whole thread Raw
In response to Bug or feature? COPY ignores column defaults  ("Oliver Elphick" <olly@lfix.co.uk>)
Responses Re: [HACKERS] Bug or feature? COPY ignores column defaults
Re: [HACKERS] Bug or feature? COPY ignores column defaults
Re: [HACKERS] Bug or feature? COPY ignores column defaults
List 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 by date:

Previous
From: "Oliver Elphick"
Date:
Subject: Bug or feature? COPY ignores column defaults
Next
From: Oleg Broytmann
Date:
Subject: Re: [HACKERS] Death!