Re: importing db as text files

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: expect <expect(at)ihubbell(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: importing db as text files
Date: 2003-08-15 07:32:01
Message-ID: 20030815002727.Q9630-100000@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Thu, 14 Aug 2003, expect wrote:

> On Thu, 14 Aug 2003 12:46:07 -0500
> Bruno Wolff III <bruno(at)wolff(dot)to> wrote:
> > Note that it isn't obvious what empty strings should map to for numbers.
> > NULL and 0 make about as much sense as using the default value.
>
> Well I'm new here but it seems to me they should map to the default value
> for that column. Why wouldn't they?

One problem with doing that is that it's inconsistent.

Given
create table test(
a text default 'abc',
b int default 5
);

copy test from stdin with delimiter ',';
,
\.

What would you expect the values of the row in test
to be?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-08-15 07:33:59 Re: [GENERAL] 7.4Beta
Previous Message Christopher Kings-Lynne 2003-08-15 07:17:21 Re: [GENERAL] 7.4Beta