pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: JT Kirkpatrick <jt-kirkpatrick@mpsllc.com>
To: 'pgsql-sql@hub.org' <pgsql-sql@hub.org>
Subject: filling an empty table w/ defaults defined
Date: Tue, 27 Apr 1999 15:57:14 -0400
Message-ID: <01BE90C6.9FF4D6A0.jt-kirkpatrick@mpsllc.com> (raw)

Is there a way to "turn off" a field (insertdt datetime primary key default 
text 'now') as I populate a table?  I have a populated table, and a mirror 
image of its structure except with the field shown above added.  I'd like 
to insert data into the new table from the old, but postgres is telling me 
it cannot insert a duplicate key into a unique index - I figure it is 
trying to use the same date/time value for 'now'.  is there any other way?

jt




view thread (2+ messages)  latest in thread

Message-ID: <01BE90C6.9FF4D6A0.jt-kirkpatrick@mpsllc.com>
Permalink:  ../01BE90C6.9FF4D6A0.jt-kirkpatrick@mpsllc.com/
Also on:    postgresql.org/message-id/01BE90C6.9FF4D6A0.jt-kirkpatrick@mpsllc.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-sql@postgresql.org
  Cc: jt-kirkpatrick@mpsllc.com, pgsql-sql@hub.org
  Subject: Re: filling an empty table w/ defaults defined
  In-Reply-To: <01BE90C6.9FF4D6A0.jt-kirkpatrick@mpsllc.com>
  References: <01BE90C6.9FF4D6A0.jt-kirkpatrick@mpsllc.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