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

Поиск
Список
Период
Сортировка
От Nick Fankhauser
Тема Re: How do I create unique IDs for an existing set of records
Дата
Msg-id NEBBLAAHGLEEPCGOBHDGEELPENAA.nickf@ontko.com
обсуждение исходный текст
Ответ на Re: How do I create unique IDs for an existing set of records  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How do I create unique IDs for an existing set of records
Следующее
От: "Josh Berkus"
Дата:
Сообщение: Re: Wierd error for COPY command