pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Petr Hybler <petr.hybler@gmail.com>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: PGSQL bug - "Column ??? is an identity column defined as GENERATED ALWAYS.",
Date: Wed, 18 Aug 2021 21:27:18 +0200
Message-ID: <949dd35d-596e-efce-c5fb-bfef19b74d3b@enterprisedb.com> (raw)
In-Reply-To: <CAEMmGb5BN_iRabOKO1_G6LkecxqLHrwFQ=cuN1bJC4HmUsjjLw@mail.gmail.com>
References: <CAEMmGb5BN_iRabOKO1_G6LkecxqLHrwFQ=cuN1bJC4HmUsjjLw@mail.gmail.com>

On 18.08.21 17:06, Petr Hybler wrote:
> |CREATE TABLE sample_table ( id int8 NOT NULL GENERATED ALWAYS AS 
> IDENTITY, name varchar(255) NOT NULL, description text NOT NULL, 
> CONSTRAINT sample_table_pk PRIMARY KEY (id) );|
> 
> When I try to insert a single value, it works OK:
> 
> |INSERT INTO sample_table (id, name, description) VALUES (DEFAULT, 'John 
> Doe', 'Test description');|
> 
> However, when inserting multiple values, it fails:
> 
> |INSERT INTO sample_table (id, name, description) VALUES (DEFAULT, 'John 
> Doe', 'Test description') , (DEFAULT, 'Jane Eod', 'Not working');|

This has been fixed in PostgreSQL 14.





view thread (8+ messages)  latest in thread

Message-ID: <949dd35d-596e-efce-c5fb-bfef19b74d3b@enterprisedb.com>
Permalink:  ../949dd35d-596e-efce-c5fb-bfef19b74d3b@enterprisedb.com/
Also on:    postgresql.org/message-id/949dd35d-596e-efce-c5fb-bfef19b74d3b@enterprisedb.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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: peter.eisentraut@enterprisedb.com, petr.hybler@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: PGSQL bug - "Column ??? is an identity column defined as GENERATED ALWAYS.",
  In-Reply-To: <949dd35d-596e-efce-c5fb-bfef19b74d3b@enterprisedb.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