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

From Tom Lane
Subject Re: [HACKERS] Bug or feature? COPY ignores column defaults
Date
Msg-id 23083.917538105@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] Bug or feature? COPY ignores column defaults  (Vadim Mikheev <vadim@krs.ru>)
List pgsql-hackers
Vadim Mikheev <vadim@krs.ru> writes:
> 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.

As it must be, or dumping/reloading a table via COPY would
fail to preserve null fields in columns with defaults.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Oliver Elphick"
Date:
Subject: Re: [HACKERS] Bug or feature? COPY ignores column defaults
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] new heap manager mmalloc