pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PGSQL-SQL <pgsql-sql@postgresql.org>
Subject: Re: How do I create unique IDs for an existing set of records
Date: Fri, 26 Apr 2002 11:17:51 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGEELPENAA.nickf@ontko.com> (raw)
In-Reply-To: <26777.1019837679@sss.pgh.pa.us>


> You are overthinking the problem; this should work:
> 
> update test set new_pk = nextval('test_new_pk_seq');

Thanks Tom! It did indeed work.

-Nick



view thread (3+ messages)

Message-ID: <NEBBLAAHGLEEPCGOBHDGEELPENAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGEELPENAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGEELPENAA.nickf@ontko.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: nickf@ontko.com, tgl@sss.pgh.pa.us
  Subject: Re: How do I create unique IDs for an existing set of records
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGEELPENAA.nickf@ontko.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