pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Allow a multi-row INSERT to specify DEFAULTs for a generated col
Date: Thu, 19 Aug 2021 05:14:11 +0200
Message-ID: <6906fe3025b8a8fc7a3c1f120b93726db53c7ed3.camel@cybertec.at> (raw)
In-Reply-To: <E1kgwHv-0005bF-Ht@gemulon.postgresql.org>
References: <E1kgwHv-0005bF-Ht@gemulon.postgresql.org>

On Sun, 2020-11-22 at 20:48 +0000, Tom Lane wrote:
> Allow a multi-row INSERT to specify DEFAULTs for a generated column.
> 
> One can say "INSERT INTO tab(generated_col) VALUES (DEFAULT)" and not
> draw an error.  But the equivalent case for a multi-row VALUES list
> always threw an error, even if one properly said DEFAULT in each row.
> Fix that.  While here, improve the test cases for nearby logic about
> OVERRIDING SYSTEM/USER values.
> 
> Dean Rasheed
> 
> Discussion: https://postgr.es/m/9q0sgcr416t.fsf@gmx.us
> 
> Branch
> ------
> master
> 
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/17958972fe3bb03454a4b53756b29d65dc285efa

Shouldn't this be backpatched?
That seems like a clear bug to me; see this report on v11:
https://stackoverflow.com/q/68834080/6464308

Yours,
Laurenz Albe






view thread (3+ messages)  latest in thread

Message-ID: <6906fe3025b8a8fc7a3c1f120b93726db53c7ed3.camel@cybertec.at>
Permalink:  ../6906fe3025b8a8fc7a3c1f120b93726db53c7ed3.camel@cybertec.at/
Also on:    postgresql.org/message-id/6906fe3025b8a8fc7a3c1f120b93726db53c7ed3.camel@cybertec.at

 · 

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-committers@postgresql.org
  Cc: laurenz.albe@cybertec.at, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Allow a multi-row INSERT to specify DEFAULTs for a generated col
  In-Reply-To: <6906fe3025b8a8fc7a3c1f120b93726db53c7ed3.camel@cybertec.at>
  References: <E1kgwHv-0005bF-Ht@gemulon.postgresql.org> <6906fe3025b8a8fc7a3c1f120b93726db53c7ed3.camel@cybertec.at>

* 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