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: Tom Lane <tgl@sss.pgh.pa.us>
Cc: steven.winfield@cantabcapital.com, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14952: COPY fails to fill in IDENTITY column default value
Date: Thu, 1 Feb 2018 10:24:48 -0500
Message-ID: <6a328b03-6912-2d12-2be6-387d4a1613c7@2ndquadrant.com> (raw)
In-Reply-To: <20171230232601.GA4109@paquier.xyz>
References: <20171207112930.21696.79944@wrigleys.postgresql.org>
	<12618e2c-0eb0-3e15-c45d-96891c52eb5f@2ndquadrant.com>
	<CAB7nPqTMCmO_Y3HcQn9-oKFQBcWXckf24urAk+_ifBjfjhD0sA@mail.gmail.com>
	<31740.1513222740@sss.pgh.pa.us>
	<21a6da72-fb24-4b9e-d300-7439425f7492@2ndquadrant.com>
	<CAB7nPqRMzeUqG2JHo81KTWz=gWGrkKbfLn2S3fOiMZ87JmVJ5w@mail.gmail.com>
	<f1d4c6aa-d91b-ebc8-c249-17d7c847ac3b@2ndquadrant.com>
	<12169.1514407385@sss.pgh.pa.us>
	<20171230232601.GA4109@paquier.xyz>

On 12/30/17 18:26, Michael Paquier wrote:
> A RangeVar is used for the proposed patch 0002. Still does it matter? In
> the scenario proposed here, which is to fix ALTER TABLE ADD COLUMN
> GENERATED, then the sequence gets created and visible only once the
> transaction adding the column has been created.
> 
>  	char		identity;		/* attidentity setting */
> +	RangeVar   *identitySequence;
>  	CollateClause *collClause;	/* untransformed COLLATE spec, if any */
> It mat be better to tell that this is used to create a sequence in the
> same transaction as the one doing the parsing.

I would like to get this into next week's minor release as a bug fix.
Other than tweaking some of the comments, is there any more feedback on
this?

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




view thread (14+ messages)  latest in thread

Message-ID: <6a328b03-6912-2d12-2be6-387d4a1613c7@2ndquadrant.com>
Permalink:  ../6a328b03-6912-2d12-2be6-387d4a1613c7@2ndquadrant.com/
Also on:    postgresql.org/message-id/6a328b03-6912-2d12-2be6-387d4a1613c7@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, tgl@sss.pgh.pa.us
  Subject: Re: BUG #14952: COPY fails to fill in IDENTITY column default value
  In-Reply-To: <6a328b03-6912-2d12-2be6-387d4a1613c7@2ndquadrant.com>
  References: <20171207112930.21696.79944@wrigleys.postgresql.org> <12618e2c-0eb0-3e15-c45d-96891c52eb5f@2ndquadrant.com> <CAB7nPqTMCmO_Y3HcQn9-oKFQBcWXckf24urAk+_ifBjfjhD0sA@mail.gmail.com> <31740.1513222740@sss.pgh.pa.us> <21a6da72-fb24-4b9e-d300-7439425f7492@2ndquadrant.com> <CAB7nPqRMzeUqG2JHo81KTWz=gWGrkKbfLn2S3fOiMZ87JmVJ5w@mail.gmail.com> <f1d4c6aa-d91b-ebc8-c249-17d7c847ac3b@2ndquadrant.com> <12169.1514407385@sss.pgh.pa.us> <20171230232601.GA4109@paquier.xyz> <6a328b03-6912-2d12-2be6-387d4a1613c7@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