pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: V. A. <a2891891@smail.Uni-Koeln.DE>
Cc: Postgres-Interface <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] libpq++ - copy - default values
Date: Thu, 04 Mar 1999 09:48:30 -0500
Message-ID: <28014.920558910@sss.pgh.pa.us> (raw)
In-Reply-To: <00af01be6641$2e5851c0$0200a8c0@Tischrechner.rrz.uni-koeln.de>

"V. A." <a2891891@smail.Uni-Koeln.DE> writes:
> My problem is, that I don't know how I can tell the copy-command to
> leave the first field untouched, so that it gets the default value from a
> sequence....

You can't.  COPY is for plain verbatim dumping and reloading of data.
Use INSERT if you need to have any calculations done.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <28014.920558910@sss.pgh.pa.us>
Permalink:  ../28014.920558910@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28014.920558910@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, a2891891@smail.Uni-Koeln.DE
  Subject: Re: [INTERFACES] libpq++ - copy - default values
  In-Reply-To: <28014.920558910@sss.pgh.pa.us>

* 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