Re: How do I create unique IDs for an existing set of records

From: "Nick Fankhauser" <nickf(at)ontko(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "PGSQL-SQL" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: How do I create unique IDs for an existing set of records
Date: 2002-04-26 16:17:51
Message-ID: NEBBLAAHGLEEPCGOBHDGEELPENAA.nickf@ontko.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


> 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2002-04-26 16:51:19 Re: Wierd error for COPY command
Previous Message Tom Lane 2002-04-26 16:14:39 Re: How do I create unique IDs for an existing set of records