pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
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: Concurrent ALTER SEQUENCE RESTART Regression
Date: Mon, 15 May 2017 10:34:02 -0400
Message-ID: <2a1e0c9e-8485-dfd8-86b8-a95542deec30@2ndquadrant.com> (raw)
In-Reply-To: <CAB7nPqQvG=B6Bqz_mSc1YoA0O5T52dDL9-9stKWPgFPWvEe=hw@mail.gmail.com>
References: <99a009ea-1797-5b82-f3d3-eb4a5a8eb5dc@2ndquadrant.com>
	<20170427011258.2tpv55b6leqe2uva@alap3.anarazel.de>
	<1e5bb916-fd58-3995-851b-6875c6dd73eb@2ndquadrant.com>
	<20170427055806.uviqrl57lkgcmmmy@alap3.anarazel.de>
	<20170427062304.gxh3rczhh6vblrwh@alap3.anarazel.de>
	<CAB7nPqTYQ+GZ9jP7FNHbTa+J5Z1k3ZmBrxvAhtOvpkH3k9j42g@mail.gmail.com>
	<E77D2275-DA45-4F43-B00D-A9B113DFA9FB@anarazel.de>
	<CAB7nPqQ=yHXxiWU2FuaC13L_5y7UG7R_OkJhWQbXYMJPXCDtNg@mail.gmail.com>
	<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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 5/10/17 09:12, Michael Paquier wrote:
> Looking at 0001 and 0002... So you are correctly blocking nextval()
> when ALTER SEQUENCE holds a lock on the sequence object. And
> concurrent calls of nextval() don't conflict. As far as I can see this
> matches the implementation of 3.
> 
> Here are some minor comments.

Committed after working in your comments.  Thanks!

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


-- 
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: <2a1e0c9e-8485-dfd8-86b8-a95542deec30@2ndquadrant.com>
Permalink:  ../2a1e0c9e-8485-dfd8-86b8-a95542deec30@2ndquadrant.com/
Also on:    postgresql.org/message-id/2a1e0c9e-8485-dfd8-86b8-a95542deec30@2ndquadrant.com

 · 

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: peter.eisentraut@2ndquadrant.com, michael.paquier@gmail.com, andres@anarazel.de, pgsql-hackers@postgresql.org, noah@leadboat.com, jason@citusdata.com
  Subject: Re: Concurrent ALTER SEQUENCE RESTART Regression
  In-Reply-To: <2a1e0c9e-8485-dfd8-86b8-a95542deec30@2ndquadrant.com>
  References: <99a009ea-1797-5b82-f3d3-eb4a5a8eb5dc@2ndquadrant.com> <20170427011258.2tpv55b6leqe2uva@alap3.anarazel.de> <1e5bb916-fd58-3995-851b-6875c6dd73eb@2ndquadrant.com> <20170427055806.uviqrl57lkgcmmmy@alap3.anarazel.de> <20170427062304.gxh3rczhh6vblrwh@alap3.anarazel.de> <CAB7nPqTYQ+GZ9jP7FNHbTa+J5Z1k3ZmBrxvAhtOvpkH3k9j42g@mail.gmail.com> <E77D2275-DA45-4F43-B00D-A9B113DFA9FB@anarazel.de> <CAB7nPqQ=yHXxiWU2FuaC13L_5y7UG7R_OkJhWQbXYMJPXCDtNg@mail.gmail.com> <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>

* 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