pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Prohibit identity columns on typed tables and partitions
6+ messages / 4 participants
[nested] [flat]

* pgsql: Prohibit identity columns on typed tables and partitions
@ 2017-12-08 17:26 Peter Eisentraut <peter_e@gmx.net>
  2017-12-08 23:43 ` Re: pgsql: Prohibit identity columns on typed tables and partitions Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Peter Eisentraut @ 2017-12-08 17:26 UTC (permalink / raw)
  To: pgsql-committers

Prohibit identity columns on typed tables and partitions

Those cases currently crash and supporting them is more work then
originally thought, so we'll just prohibit these scenarios for now.

Author: Michael Paquier <michael.paquier@gmail.com>
Reviewed-by: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Reported-by: Мансур Галиев <gomer94@yandex.ru>
Bug: #14866

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/005ac298b1bdc3e9bd19e5ee2bcf7e320ebe4130

Modified Files
--------------
src/backend/parser/parse_utilcmd.c     | 13 +++++++++++++
src/test/regress/expected/identity.out | 12 ++++++++++++
src/test/regress/sql/identity.sql      | 16 ++++++++++++++++
3 files changed, 41 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: pgsql: Prohibit identity columns on typed tables and partitions
  2017-12-08 17:26 pgsql: Prohibit identity columns on typed tables and partitions Peter Eisentraut <peter_e@gmx.net>
@ 2017-12-08 23:43 ` Michael Paquier <michael.paquier@gmail.com>
  2017-12-09 10:47   ` Re: pgsql: Prohibit identity columns on typed tables and partitions Magnus Hagander <magnus@hagander.net>
  0 siblings, 1 reply; 6+ messages in thread

From: Michael Paquier @ 2017-12-08 23:43 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>

On Sat, Dec 9, 2017 at 2:26 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
> Prohibit identity columns on typed tables and partitions
>
> Those cases currently crash and supporting them is more work then
> originally thought, so we'll just prohibit these scenarios for now.

+                               (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+                                errmsg("identify columns are not
supported on partitions")));
Er... s/identify/identity/. My fault I guess.
-- 
Michael

Attachments:

identity-errmsg-typo.patch (application/octet-stream, 641B) download diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index 343e6b3738..f67379f8ed 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -672,7 +672,7 @@ transformColumnDefinition(CreateStmtContext *cxt, ColumnDef *column) if (cxt->partbound) ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), - errmsg("identify columns are not supported on partitions"))); + errmsg("identity columns are not supported on partitions"))); ctype = typenameType(cxt->pstate, column->typeName, NULL); typeOid = HeapTupleGetOid(ctype);
^ permalink raw reply [nested|flat] 6+ messages in thread

* Re: pgsql: Prohibit identity columns on typed tables and partitions
  2017-12-08 17:26 pgsql: Prohibit identity columns on typed tables and partitions Peter Eisentraut <peter_e@gmx.net>
  2017-12-08 23:43 ` Re: pgsql: Prohibit identity columns on typed tables and partitions Michael Paquier <michael.paquier@gmail.com>
@ 2017-12-09 10:47   ` Magnus Hagander <magnus@hagander.net>
  2017-12-09 13:45     ` Re: pgsql: Prohibit identity columns on typed tables and partitions Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Magnus Hagander @ 2017-12-09 10:47 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Peter Eisentraut <peter_e@gmx.net>; PostgreSQL mailing lists <pgsql-hackers@postgresql.org>

On Sat, Dec 9, 2017 at 8:43 AM, Michael Paquier <michael.paquier@gmail.com>
wrote:

> On Sat, Dec 9, 2017 at 2:26 AM, Peter Eisentraut <peter_e@gmx.net> wrote:
> > Prohibit identity columns on typed tables and partitions
> >
> > Those cases currently crash and supporting them is more work then
> > originally thought, so we'll just prohibit these scenarios for now.
>
> +                               (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
> +                                errmsg("identify columns are not
> supported on partitions")));
> Er... s/identify/identity/. My fault I guess.
>

Spotted the separate report on it first, so a fix has been pushed.

-- 
 Magnus Hagander
 Me: https://www.hagander.net/ <http://www.hagander.net/;
 Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: pgsql: Prohibit identity columns on typed tables and partitions
  2017-12-08 17:26 pgsql: Prohibit identity columns on typed tables and partitions Peter Eisentraut <peter_e@gmx.net>
  2017-12-08 23:43 ` Re: pgsql: Prohibit identity columns on typed tables and partitions Michael Paquier <michael.paquier@gmail.com>
  2017-12-09 10:47   ` Re: pgsql: Prohibit identity columns on typed tables and partitions Magnus Hagander <magnus@hagander.net>
@ 2017-12-09 13:45     ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  2017-12-09 13:47       ` Re: pgsql: Prohibit identity columns on typed tables and partitions Magnus Hagander <magnus@hagander.net>
  0 siblings, 1 reply; 6+ messages in thread

From: Peter Eisentraut @ 2017-12-09 13:45 UTC (permalink / raw)
  To: Magnus Hagander <magnus@hagander.net>; Michael Paquier <michael.paquier@gmail.com>; +Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>

On 12/9/17 05:47, Magnus Hagander wrote:
> 
> 
> On Sat, Dec 9, 2017 at 8:43 AM, Michael Paquier
> <michael.paquier@gmail.com <mailto:michael.paquier@gmail.com>> wrote:
> 
>     On Sat, Dec 9, 2017 at 2:26 AM, Peter Eisentraut <peter_e@gmx.net
>     <mailto:peter_e@gmx.net>> wrote:
>     > Prohibit identity columns on typed tables and partitions
>     >
>     > Those cases currently crash and supporting them is more work then
>     > originally thought, so we'll just prohibit these scenarios for now.
> 
>     +                               (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
>     +                                errmsg("identify columns are not
>     supported on partitions")));
>     Er... s/identify/identity/. My fault I guess.
> 
> 
> Spotted the separate report on it first, so a fix has been pushed.

Please also backpatch to PG10.

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




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: pgsql: Prohibit identity columns on typed tables and partitions
  2017-12-08 17:26 pgsql: Prohibit identity columns on typed tables and partitions Peter Eisentraut <peter_e@gmx.net>
  2017-12-08 23:43 ` Re: pgsql: Prohibit identity columns on typed tables and partitions Michael Paquier <michael.paquier@gmail.com>
  2017-12-09 10:47   ` Re: pgsql: Prohibit identity columns on typed tables and partitions Magnus Hagander <magnus@hagander.net>
  2017-12-09 13:45     ` Re: pgsql: Prohibit identity columns on typed tables and partitions Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
@ 2017-12-09 13:47       ` Magnus Hagander <magnus@hagander.net>
  0 siblings, 0 replies; 6+ messages in thread

From: Magnus Hagander @ 2017-12-09 13:47 UTC (permalink / raw)
  To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>; +Cc: Michael Paquier <michael.paquier@gmail.com>; PostgreSQL mailing lists <pgsql-hackers@postgresql.org>

On Sat, Dec 9, 2017 at 10:45 PM, Peter Eisentraut <
peter.eisentraut@2ndquadrant.com> wrote:

> On 12/9/17 05:47, Magnus Hagander wrote:
> >
> >
> > On Sat, Dec 9, 2017 at 8:43 AM, Michael Paquier
> > <michael.paquier@gmail.com <mailto:michael.paquier@gmail.com>> wrote:
> >
> >     On Sat, Dec 9, 2017 at 2:26 AM, Peter Eisentraut <peter_e@gmx.net
> >     <mailto:peter_e@gmx.net>> wrote:
> >     > Prohibit identity columns on typed tables and partitions
> >     >
> >     > Those cases currently crash and supporting them is more work then
> >     > originally thought, so we'll just prohibit these scenarios for now.
> >
> >     +                               (errcode(ERRCODE_FEATURE_NOT_
> SUPPORTED),
> >     +                                errmsg("identify columns are not
> >     supported on partitions")));
> >     Er... s/identify/identity/. My fault I guess.
> >
> >
> > Spotted the separate report on it first, so a fix has been pushed.
>
> Please also backpatch to PG10.
>

Oops, I completely missed that the original patch was backpatched. Will
fix, thanks!

-- 
 Magnus Hagander
 Me: https://www.hagander.net/ <http://www.hagander.net/;
 Work: https://www.redpill-linpro.com/ <http://www.redpill-linpro.com/;

^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Prohibit identity columns on typed tables and partitions
@ 2017-12-08 17:26 Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 6+ messages in thread

From: Peter Eisentraut @ 2017-12-08 17:26 UTC (permalink / raw)
  To: pgsql-committers

Prohibit identity columns on typed tables and partitions

Those cases currently crash and supporting them is more work then
originally thought, so we'll just prohibit these scenarios for now.

Author: Michael Paquier <michael.paquier@gmail.com>
Reviewed-by: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Reported-by: Мансур Галиев <gomer94@yandex.ru>
Bug: #14866

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a2c6cf36608e10aa223fef49323b5feba344bfcf

Modified Files
--------------
src/backend/parser/parse_utilcmd.c     | 13 +++++++++++++
src/test/regress/expected/identity.out | 12 ++++++++++++
src/test/regress/sql/identity.sql      | 16 ++++++++++++++++
3 files changed, 41 insertions(+)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2017-12-09 13:47 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-12-08 17:26 pgsql: Prohibit identity columns on typed tables and partitions Peter Eisentraut <peter_e@gmx.net>
2017-12-08 23:43 ` Michael Paquier <michael.paquier@gmail.com>
2017-12-09 10:47   ` Magnus Hagander <magnus@hagander.net>
2017-12-09 13:45     ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2017-12-09 13:47       ` Magnus Hagander <magnus@hagander.net>
2017-12-08 17:26 pgsql: Prohibit identity columns on typed tables and partitions Peter Eisentraut <peter_e@gmx.net>

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