Re: [BUGS] BUG #14866: The generated constraint in the typed tablecauses the server to crash - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: [BUGS] BUG #14866: The generated constraint in the typed tablecauses the server to crash
Date
Msg-id 8dd10932-16f0-7e07-6fd2-be33cbea962e@2ndquadrant.com
Whole thread Raw
In response to Re: [BUGS] BUG #14866: The generated constraint in the typed tablecauses the server to crash  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [BUGS] BUG #14866: The generated constraint in the typed tablecauses the server to crash  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-bugs
On 10/23/17 18:21, Michael Paquier wrote:
> Attached is a patch to address the problem. There are a couple of
> things to consider:
> - transformColumnDefinition is missing the fact that a type may not be
> set for a column defined, and as far as I can see the type name is
> needed beforehand to allow the generation of all the serial commands.
> This can happen when using CREATE TABLE OF, as you reported, for which
> the data type can be found in the type defined. But this can happen as
> well when declaring a child partition.

I wonder whether we should even allow this.  The SQL standard does not
allow identity columns in typed tables, so there is support for that.
I'm not sure whether it makes sense in partitions.  You are supposed to
insert through the partition root, so making identity columns in
partitions would just be confusing.

> I am adding Peter E in CC, who is the author and committer of the
> feature. I am adding an entry in the CF as well.

There are two entries for this now.  Maybe remove one?

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

pgsql-bugs by date:

Previous
From: Henri KY
Date:
Subject: Re: [BUGS] BUG #14874: Dublicate values in primary key
Next
From: Michael Paquier
Date:
Subject: Re: [BUGS] BUG #14866: The generated constraint in the typed tablecauses the server to crash