bulk imports with sequence

Поиск
Список
Период
Сортировка
От Aaron Held
Тема bulk imports with sequence
Дата
Msg-id 000b01c24840$7b5a0880$4b00a8c0@metrony.com
обсуждение исходный текст
Ответ на Re: sql subqueries problem  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Ответы Re: bulk imports with sequence  ("Dan Langille" <dan@langille.org>)
Re: bulk imports with sequence  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
I am importing a large number of records monthly using the \copy (from text file)command.

I would like to use a sequence as a unique row ID for display in my app.

Is there any way to let postgresql generate the sequence itself.  Currently the only way I
can make it work is to grab the next seq value and insert my own numbers into the file

Thank You,
-Aaron Held



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

Предыдущее
От: "Falk Nisius"
Дата:
Сообщение: How to prevent recursion
Следующее
От: "Dan Langille"
Дата:
Сообщение: Re: bulk imports with sequence