pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Cc: Noah Misch <noah@leadboat.com>
Cc: Jason Petersen <jason@citusdata.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: [HACKERS] Concurrent ALTER SEQUENCE RESTART Regression
Date: Tue, 23 May 2017 20:25:17 -0700
Message-ID: <20170524032516.rsggec2yrd4cqvv2@alap3.anarazel.de> (raw)
In-Reply-To: <CA+TgmoYQHukyVADmRoWKA1KPzgduXVTbkywCtuQQjnVPCyh+Cg@mail.gmail.com>
References: <20170430080517.GA811193@rfd.leadboat.com>
	<59aeb834-b113-6769-bfe4-65f2f8c875e3@2ndquadrant.com>
	<20170507234334.yimkp6aq2o43wtt2@alap3.anarazel.de>
	<4521f870-bb1f-1b29-3b3f-42419696efe7@2ndquadrant.com>
	<CAB7nPqQvG=B6Bqz_mSc1YoA0O5T52dDL9-9stKWPgFPWvEe=hw@mail.gmail.com>
	<2a1e0c9e-8485-dfd8-86b8-a95542deec30@2ndquadrant.com>
	<20170518205428.kxxtsdl6wswnz3e3@alap3.anarazel.de>
	<CA+TgmoadW_JQRSCn4qCQE1FsD+FNwzW+_cLdHDnMf6Qk+S1XiQ@mail.gmail.com>
	<20170522154227.nvafbsm62sjpbxvd@alap3.anarazel.de>
	<CA+TgmoYQHukyVADmRoWKA1KPzgduXVTbkywCtuQQjnVPCyh+Cg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2017-05-23 22:47:07 -0400, Robert Haas wrote:
> On Mon, May 22, 2017 at 11:42 AM, Andres Freund <andres@anarazel.de> wrote:
> > Ooops.
> >
> > Two issues: Firstly, we get a value smaller than seqmin, obviously
> > that's not ok. But even if we'd error out, it'd imo still not be ok,
> > because we have a command that behaves partially transactionally
> > (keeping the seqmax/min transactionally), partially not (keeping the
> > current sequence state at -9).
> 
> I don't really agree that this is broken.

Just a quick clarification question: You did notice that nextval() in S1
after the rollback returned -9, despite seqmin being 0?  I can see
erroring out being acceptable, but returning flat out wrong values....?

- Andres


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (84+ messages)  latest in thread

Message-ID: <20170524032516.rsggec2yrd4cqvv2@alap3.anarazel.de>
Permalink:  ../20170524032516.rsggec2yrd4cqvv2@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20170524032516.rsggec2yrd4cqvv2@alap3.anarazel.de

 · 

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-bugs@postgresql.org
  Cc: andres@anarazel.de, robertmhaas@gmail.com, peter.eisentraut@2ndquadrant.com, michael.paquier@gmail.com, pgsql-hackers@postgresql.org, noah@leadboat.com, jason@citusdata.com
  Subject: Re: [HACKERS] Concurrent ALTER SEQUENCE RESTART Regression
  In-Reply-To: <20170524032516.rsggec2yrd4cqvv2@alap3.anarazel.de>
  References: <20170430080517.GA811193@rfd.leadboat.com> <59aeb834-b113-6769-bfe4-65f2f8c875e3@2ndquadrant.com> <20170507234334.yimkp6aq2o43wtt2@alap3.anarazel.de> <4521f870-bb1f-1b29-3b3f-42419696efe7@2ndquadrant.com> <CAB7nPqQvG=B6Bqz_mSc1YoA0O5T52dDL9-9stKWPgFPWvEe=hw@mail.gmail.com> <2a1e0c9e-8485-dfd8-86b8-a95542deec30@2ndquadrant.com> <20170518205428.kxxtsdl6wswnz3e3@alap3.anarazel.de> <CA+TgmoadW_JQRSCn4qCQE1FsD+FNwzW+_cLdHDnMf6Qk+S1XiQ@mail.gmail.com> <20170522154227.nvafbsm62sjpbxvd@alap3.anarazel.de> <CA+TgmoYQHukyVADmRoWKA1KPzgduXVTbkywCtuQQjnVPCyh+Cg@mail.gmail.com> <20170524032516.rsggec2yrd4cqvv2@alap3.anarazel.de>

* 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