Re: BUG #14952: COPY fails to fill in IDENTITY column default value - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: BUG #14952: COPY fails to fill in IDENTITY column default value
Date
Msg-id 6a328b03-6912-2d12-2be6-387d4a1613c7@2ndquadrant.com
Whole thread Raw
In response to Re: BUG #14952: COPY fails to fill in IDENTITY column default value  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: BUG #14952: COPY fails to fill in IDENTITY column default value
List pgsql-bugs
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


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15043: postgresql yum repository dependency problem
Next
From: Robert Haas
Date:
Subject: Re: Re: BUG #15039: some question about hash index code