Re: [GENERAL] 9.6.1: INSERT with PK as serial

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [GENERAL] 9.6.1: INSERT with PK as serial
Дата
Msg-id CAKFQuwbviNoDK=vdkqJhvB5UeSebiQ3FReZWtQkPPs4_G8Djvw@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] 9.6.1: INSERT with PK as serial  (Rich Shepard <rshepard@appl-ecosys.com>)
Ответы Re: [GENERAL] 9.6.1: INSERT with PK as serial  (Rich Shepard <rshepard@appl-ecosys.com>)
Список pgsql-general
On Monday, January 16, 2017, Rich Shepard <rshepard@appl-ecosys.com> wrote:
  I have a table with the primary key type of serial. The initial data load
has 40 lines, and each has a value for every column including sequential
integers from 1 through 40 for the data. 

Without any special effort on your part the first 40 records you try to insert using the default sequence are now going to fail with duplicate key errors.

David J. 

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

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Re: [GENERAL] 9.6.1: INSERT with PK as serial [FIXED]
Следующее
От: Rich Shepard
Дата:
Сообщение: Re: [GENERAL] 9.6.1: INSERT with PK as serial