pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jr <jorg.raskowski@tailorware.org.uk>
To: pgsql-sql@postgresql.org
Subject: Re: safely exchanging primary keys?
Date: Mon, 24 May 2010 12:46:55 +0100
Message-ID: <htdovf$1k92$1@news.hub.org> (raw)
In-Reply-To: <20100524085101.GA21249@apartia.fr>
References: <20100524085101.GA21249@apartia.fr>

hi Louis-David,

> tmp := nextval('cabin_type_id_cabin_type_seq');

seems to me you're adding a newly created key value (for which there 
isn't a record yet).

-- 

regards, jr.  (jr@tailorware.org.uk)



view thread (9+ messages)  latest in thread

Message-ID: <htdovf$1k92$1@news.hub.org>
Permalink:  ../htdovf$1k92$1@news.hub.org/
Also on:    postgresql.org/message-id/htdovf$1k92$1@news.hub.org

 · 

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-sql@postgresql.org
  Cc: jorg.raskowski@tailorware.org.uk
  Subject: Re: safely exchanging primary keys?
  In-Reply-To: <htdovf$1k92$1@news.hub.org>

* 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