Re: Proposal: Better generation of values in GENERATED columns. - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Proposal: Better generation of values in GENERATED columns.
Date
Msg-id c1bb5ef0-02f2-a2d8-ccc6-21bc69c9b06a@2ndquadrant.com
Whole thread Raw
In response to Proposal: Better generation of values in GENERATED columns.  (Daniel Migowski <dmigowski@ikoffice.de>)
Responses Re: Proposal: Better generation of values in GENERATED columns.  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg11.5: ExecHashJoinNewBatch: glibc detected...double free or corruption (!prev)
Next
From: Fabien COELHO
Date:
Subject: Re: pgbench - allow to create partitioned tables