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: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>
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: Wed, 24 May 2017 07:32:40 -0700
Message-ID: <20170524143239.2dzn3hq3k5wt6shf@alap3.anarazel.de> (raw)
In-Reply-To: <CA+TgmoYQ_RAJbyupefJsg2W2P4vjKfCuLHyuqOuX_54SNCA9DQ@mail.gmail.com>
References: <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>
	<CA+TgmoZWmxkg1BC637-yY=OOyTLd00ADTfXY30YudXCtjcYBKA@mail.gmail.com>
	<54DD1674-B9FC-4723-AC3E-890373889E25@anarazel.de>
	<CA+TgmoYQ_RAJbyupefJsg2W2P4vjKfCuLHyuqOuX_54SNCA9DQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2017-05-24 10:24:19 -0400, Robert Haas wrote:
> On Wed, May 24, 2017 at 9:04 AM, Andres Freund <andres@anarazel.de> wrote:
> > At the very least we'll have to error out. That's still not nice usability wise, but it sure beats returning flat out wrong values.
> 
> I'm not sure.  That seems like it might often be worse.  Now you need
> manual intervention before anything even has a hope of working.

Well, but then we should just remove minval/maxval if we can't rely on
it.


> > I suspect that the proper fix would be to use a different relfilenode after ddl, when changing the seq file itself (I.e. setval and restart).  That seems like it'd be architecturally more appropriate, but also some work.
> 
> I can see some advantages to that, but it seems far too late to think
> about doing that in v10.

I wonder if that's not actually very little new code, and I think we
might end up regretting having yet another inconsistent set of semantics
in v10, which we'll then end up changing again in v11.

- 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: <20170524143239.2dzn3hq3k5wt6shf@alap3.anarazel.de>
Permalink:  ../20170524143239.2dzn3hq3k5wt6shf@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20170524143239.2dzn3hq3k5wt6shf@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, pgsql-hackers@postgresql.org, peter.eisentraut@2ndquadrant.com, michael.paquier@gmail.com, noah@leadboat.com, jason@citusdata.com
  Subject: Re: [HACKERS] Concurrent ALTER SEQUENCE RESTART Regression
  In-Reply-To: <20170524143239.2dzn3hq3k5wt6shf@alap3.anarazel.de>
  References: <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> <CA+TgmoZWmxkg1BC637-yY=OOyTLd00ADTfXY30YudXCtjcYBKA@mail.gmail.com> <54DD1674-B9FC-4723-AC3E-890373889E25@anarazel.de> <CA+TgmoYQ_RAJbyupefJsg2W2P4vjKfCuLHyuqOuX_54SNCA9DQ@mail.gmail.com> <20170524143239.2dzn3hq3k5wt6shf@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