Re: [GENERAL] all serial type was changed to 1

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: [GENERAL] all serial type was changed to 1
Дата
Msg-id CAH2-Wz=3K7H9oJKbAmdwdD48RGsQxs=YTtnA5hqTcvN7mgZzsA@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] all serial type was changed to 1  (Max Wang <mwang@1080agile.com>)
Список pgsql-general
On Sun, Apr 30, 2017 at 10:51 PM, Max Wang <mwang@1080agile.com> wrote:
> We have a PostgreSQL database. There are 26 tables and we use serial type as
> primary key.  We had a insert error as “duplicate key value violates unique
> constraint, DETAIL:  Key (id)=(1) already exists.” one weeks ago. I checked
> and found all tables’ id were reset to 1.

I've heard of this happening before. I never determined what the cause was.


--
Peter Geoghegan

VMware vCenter Server
https://www.vmware.com/


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

Предыдущее
От: Max Wang
Дата:
Сообщение: [GENERAL] all serial type was changed to 1
Следующее
От: Philippe BEAUDOIN
Дата:
Сообщение: [GENERAL] Column rename in an extension update script