pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: expect <expect@ihubbell.com>
To: pgsql-general@postgresql.org
Subject: Re: importing db as text files
Date: Fri, 15 Aug 2003 08:55:36 -0700
Message-ID: <20030815085536.0a9b2c39.expect@ihubbell.com> (raw)
In-Reply-To: <2D92FEBFD3BE1346A6C397223A8DD3FC0923AE@THOR.goeci.com>
References: <2D92FEBFD3BE1346A6C397223A8DD3FC0923AE@THOR.goeci.com>

On Fri, 15 Aug 2003 11:32:20 -0400
Murthy Kambhampaty <murthy.kambhampaty@goeci.com> wrote:

> On Friday, August 15, 2003 03:53, expect [mailto:expect@ihubbell.com] wrote:
> >On Fri, 15 Aug 2003 00:32:01 -0700 (PDT)
> >Stephan Szabo <sszabo@megazone.bigpanda.com> wrote:
> >
> ...
> >> 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 this case I would expect the row to have:
> >
> >  a  |  b
> >----------
> >     |
> > abc |  5
> >
> >
> >Is this too much to expect?
> 
> Your expectations don't seem consistent with the table definition, which
> permits Null values are allowed in (it's ironic you would add "null ''" to
> the copy statement, which says you want to treat empty strings as default
> values, not null!).
> 


Why is it ironic? I don't think you've followed the thread correctly.
It's what I wanted to have happen.










view thread (32+ messages)  latest in thread

Message-ID: <20030815085536.0a9b2c39.expect@ihubbell.com>
Permalink:  ../20030815085536.0a9b2c39.expect@ihubbell.com/
Also on:    postgresql.org/message-id/20030815085536.0a9b2c39.expect@ihubbell.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: expect@ihubbell.com
  Subject: Re: importing db as text files
  In-Reply-To: <20030815085536.0a9b2c39.expect@ihubbell.com>
  References: <2D92FEBFD3BE1346A6C397223A8DD3FC0923AE@THOR.goeci.com> <20030815085536.0a9b2c39.expect@ihubbell.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox