Re: identity not working with inherited table - Mailing list pgsql-bugs

From Francisco Olarte
Subject Re: identity not working with inherited table
Date
Msg-id CA+bJJbxbAVCc+h=eUmyA_TiJmDDiaG0xCoMm79EAaOCtyUpS7A@mail.gmail.com
Whole thread Raw
In response to Re: identity not working with inherited table  (José Luis Viejo <jlviejo@gmail.com>)
Responses Re: identity not working with inherited table  (Euler Taveira <euler@timbira.com.br>)
List 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 by date:

Previous
From: José Luis Viejo
Date:
Subject: Re: identity not working with inherited table
Next
From: Euler Taveira
Date:
Subject: Re: BUG #15791: WalSndCtl->sync_standbys_defined modified too late