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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Bug or feature? COPY ignores column defaults
Date: 1999-01-28 15:41:45
Message-ID: 23083.917538105@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Vadim Mikheev <vadim(at)krs(dot)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

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-01-28 15:50:04 Re: [HACKERS] new heap manager mmalloc
Previous Message Oliver Elphick 1999-01-28 15:07:33 Re: [HACKERS] Bug or feature? COPY ignores column defaults