Re: identity not working with inherited table

Поиск
Список
Период
Сортировка
От Francisco Olarte
Тема Re: identity not working with inherited table
Дата
Msg-id CA+bJJbxbAVCc+h=eUmyA_TiJmDDiaG0xCoMm79EAaOCtyUpS7A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: identity not working with inherited table  (José Luis Viejo <jlviejo@gmail.com>)
Ответы Re: identity not working with inherited table  (Euler Taveira <euler@timbira.com.br>)
Список pgsql-bugs
Seems like pilot error ( rtfm )?...

On Sun, May 5, 2019 at 12:50 PM José Luis Viejo <jlviejo@gmail.com> wrote:
> I'm using PostgreSQL 11 latest version, having problems with an identity as PK that inherits a table.

https://www.postgresql.org/docs/11/sql-createtable.html says in the
description of the inherits cluase of create table:

"If a column in the parent table is an identity column, that property
is not inherited. A column in the child table can be declared identity
column if desired."

So
> ERROR:  null value in column "id_t7" violates not-null constraint
> DETAIL:  Failing row contains (null, null, 20797, t, 101, 2019-05-03 22:27:54.823894).

Seems to be working exactly as documented, not-null inherited, identity not.

F.O.



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

Предыдущее
От: José Luis Viejo
Дата:
Сообщение: Re: identity not working with inherited table
Следующее
От: Euler Taveira
Дата:
Сообщение: Re: BUG #15791: WalSndCtl->sync_standbys_defined modified too late