Re: Proposal: Better generation of values in GENERATED columns.

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Daniel Migowski <dmigowski(at)ikoffice(dot)de>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Proposal: Better generation of values in GENERATED columns.
Date: 2019-08-26 17:18:55
Message-ID: c1bb5ef0-02f2-a2d8-ccc6-21bc69c9b06a@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2019-08-26 13:28, Daniel Migowski wrote:
> I would like to implement a fallback solution
> that detects such errors and automatically updates the nextvalue of the
> sequence when the nextvalue is already used on insert.

ISTM that such a system would likely have many of the same problems as
the often-proposed ignore-errors mode for COPY, namely that you can't
catch errors and do something else other than rethrowing the error.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2019-08-26 17:34:18 Re: pgbench - allow to create partitioned tables
Previous Message Dave Cramer 2019-08-26 17:02:24 Re: Procedure support improvements