pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
To: gomer94@yandex.ru
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14866: The generated constraint in the typed table causes the server to crash
Date: Wed, 1 Nov 2017 09:36:12 -0400
Message-ID: <8dd10932-16f0-7e07-6fd2-be33cbea962e@2ndquadrant.com> (raw)
In-Reply-To: <CAB7nPqS+ofdMRy4+pNrLDyN6My6xDutX5SN_ObbJdKasYNH7wQ@mail.gmail.com>
References: <20171023074458.1473.25799@wrigleys.postgresql.org>
	<CAB7nPqTtWi3S7ew6aCQqkHiUos5n=jigS=GMpV2vEbQCfU1qqA@mail.gmail.com>
	<CAB7nPqS+ofdMRy4+pNrLDyN6My6xDutX5SN_ObbJdKasYNH7wQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (16+ messages)  latest in thread

Message-ID: <8dd10932-16f0-7e07-6fd2-be33cbea962e@2ndquadrant.com>
Permalink:  ../8dd10932-16f0-7e07-6fd2-be33cbea962e@2ndquadrant.com/
Also on:    postgresql.org/message-id/8dd10932-16f0-7e07-6fd2-be33cbea962e@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, michael.paquier@gmail.com, gomer94@yandex.ru
  Subject: Re: BUG #14866: The generated constraint in the typed table causes the server to crash
  In-Reply-To: <8dd10932-16f0-7e07-6fd2-be33cbea962e@2ndquadrant.com>
  References: <20171023074458.1473.25799@wrigleys.postgresql.org> <CAB7nPqTtWi3S7ew6aCQqkHiUos5n=jigS=GMpV2vEbQCfU1qqA@mail.gmail.com> <CAB7nPqS+ofdMRy4+pNrLDyN6My6xDutX5SN_ObbJdKasYNH7wQ@mail.gmail.com> <8dd10932-16f0-7e07-6fd2-be33cbea962e@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox