Re: Automatic PK values not added to new rows

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: Automatic PK values not added to new rows
Дата
Msg-id 452c4b59-d43a-f413-114-e35bd5f9d3d2@appl-ecosys.com
обсуждение исходный текст
Ответ на Re: Automatic PK values not added to new rows  (Thomas Kellerer <shammat@gmx.net>)
Список pgsql-general
On Wed, 25 May 2022, Thomas Kellerer wrote:

> If you want to prevent such a situation in the future, you might want to
> consider defining those columns as "generated always as identity" instead
> of "serial".
>
> Then you'd get an error if you try to bypass the database generated values.

Thanks, Thomas.

Rich



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

Предыдущее
От: Abhishek Bhola
Дата:
Сообщение: Re: PG 13.6 : Data corruption error message not being sent to syslog
Следующее
От: Ron
Дата:
Сообщение: Re: Automatic PK values not added to new rows