pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Concurrent INSERT statements with RETURNING clause resetting SERIAL sequence
Date: Wed, 20 Jul 2022 11:33:25 +0200
Message-ID: <YtfL5QFRNjFBUegM@hermes.hilbert.loc> (raw)
In-Reply-To: <DBAP191MB12892D84093ECBB2CCF8D111B08E9@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM>
References: <DBAP191MB1289AC6BB681A44166256884B08F9@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM>
	<1156239.1658245261@sss.pgh.pa.us>
	<DBAP191MB12893B2B95B14B2EC2482ED8B08F9@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM>
	<3dfcd7c4-e133-59f7-f959-0df510682488@gmx.net>
	<DBAP191MB12892D84093ECBB2CCF8D111B08E9@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM>

Am Wed, Jul 20, 2022 at 09:15:29AM +0000 schrieb Sebastien Flaesch:

> Thomas, we already have a similar solution.
> The idea is to use the native PostgreSQL SERIAL type.

Which does not guarantuee gaplessness.

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B





view thread (10+ messages)

Message-ID: <YtfL5QFRNjFBUegM@hermes.hilbert.loc>
Permalink:  ../YtfL5QFRNjFBUegM@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/YtfL5QFRNjFBUegM@hermes.hilbert.loc

 · 

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-general@postgresql.org
  Cc: Karsten.Hilbert@gmx.net
  Subject: Re: Concurrent INSERT statements with RETURNING clause resetting SERIAL sequence
  In-Reply-To: <YtfL5QFRNjFBUegM@hermes.hilbert.loc>
  References: <DBAP191MB1289AC6BB681A44166256884B08F9@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM> <1156239.1658245261@sss.pgh.pa.us> <DBAP191MB12893B2B95B14B2EC2482ED8B08F9@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM> <3dfcd7c4-e133-59f7-f959-0df510682488@gmx.net> <DBAP191MB12892D84093ECBB2CCF8D111B08E9@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM> <YtfL5QFRNjFBUegM@hermes.hilbert.loc>

* 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