Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d4jrt-00078w-P9 for pgsql-bugs@arkaria.postgresql.org; Sun, 30 Apr 2017 08:06:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d4jrt-0004yR-8F for pgsql-bugs@arkaria.postgresql.org; Sun, 30 Apr 2017 08:06:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d4jrB-0002az-FS for pgsql-bugs@postgresql.org; Sun, 30 Apr 2017 08:05:25 +0000 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d4jr8-0001Ee-AG for pgsql-bugs@postgresql.org; Sun, 30 Apr 2017 08:05:24 +0000 Received: by mail-pf0-x235.google.com with SMTP id q66so20726436pfi.3 for ; Sun, 30 Apr 2017 01:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=EDFRJaMcKGbgfas0MmCfMZoszm/8vaoIU1aY/OMZkcY=; b=aLI7j6d16lvvuQ4BWW8zXHIongcIfDA67CpJC168L2OZRbRnhmOLh12F7701nh/H+5 FQuSNnxHQvZluGaeTkBoz8Bo0+UWjS0LBDn6GzGghg1BBQQHaJyN+GAlsjZrnLprU5b/ hc7SapyOenM5G4m/x/Azto1S6etJ2RChPui9k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EDFRJaMcKGbgfas0MmCfMZoszm/8vaoIU1aY/OMZkcY=; b=PrYA1/74cf6ocJTpFGMl1Bso0zLGcahv1/embw2FgYckbBNgH6/yRE+fLfjegWpl7B Bova6z8ZDQh7h5Oldft6CckxFwW63ZZcATd4AkdIWb7CmWaamkjNPFJm9ubSx+cggv9Q aAEIc85anfUjxRCVXjBp6Mi7edKSt8+Ul4DWssotdMfb2GM28RuHzlAzpzdlJRiPU3+t r4SIsJg48e9n+2SJhrQ6r1LvgVHQBcq3lWQ5jww6eidQSp+hojLRRaHj4cprR9SfhfDL TdhNjdalVq3/U035FrddB+9WE1YsfNr95BLjsP2KHIvCU0yEDrS3xBOeVqCpHcnyKd5T fKSg== X-Gm-Message-State: AN3rC/5ixY2DTYLFTsFrkDgAbBywIJJWd6TFy6ZYoLKlD6kpqGOHZMFj bKckKsdMXOTZJA== X-Received: by 10.98.195.10 with SMTP id v10mr20606586pfg.219.1493539520421; Sun, 30 Apr 2017 01:05:20 -0700 (PDT) Received: from rfd.leadboat.com (c-98-248-47-228.hsd1.ca.comcast.net. [98.248.47.228]) by smtp.gmail.com with ESMTPSA id 186sm16050357pfx.72.2017.04.30.01.05.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Apr 2017 01:05:19 -0700 (PDT) Date: Sun, 30 Apr 2017 08:05:17 +0000 From: Noah Misch To: Peter Eisentraut Cc: Andres Freund , Jason Petersen , Michael Paquier , PostgreSQL mailing lists , pgsql-hackers@postgresql.org Subject: Re: Concurrent ALTER SEQUENCE RESTART Regression Message-ID: <20170430080517.GA811193@rfd.leadboat.com> References: <20170426174813.slaq6mka7v6xohap@alap3.anarazel.de> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Fri, Apr 28, 2017 at 04:55:45PM +0900, Michael Paquier wrote: > On Thu, Apr 27, 2017 at 4:10 PM, Andres Freund wrote: > > On April 27, 2017 12:06:55 AM PDT, Michael Paquier wrote: > >>On Thu, Apr 27, 2017 at 3:23 PM, Andres Freund > >>wrote: > >>> More fun: > >>> > >>> A: CREATE SEQUENCE someseq; > >>> A: BEGIN; > >>> A: ALTER SEQUENCE someseq MAXVALUE 10; > >>> B: SELECT nextval('someseq') FROM generate_series(1, 1000); > >>> > >>> => ignores maxvalue > >> > >>Well, for this one that's because the catalog change is > >>transactional... > > > > Or because the locking model is borked. > > The operation actually relies heavily on the fact that the exclusive > lock on the buffer of pg_sequence is hold until the end of the catalog > update. And using heap_inplace_update() seems mandatory to me as the > metadata update should be non-transactional, giving the attached. I > have added some isolation tests. Thoughts? The attached makes HEAD map > with the pre-9.6 behavior. [Action required within three days. This is a generic notification.] The above-described topic is currently a PostgreSQL 10 open item. Peter, since you committed the patch believed to have created it, you own this open item. If some other commit is more relevant or if this does not belong as a v10 open item, please let us know. Otherwise, please observe the policy on open item ownership[1] and send a status update within three calendar days of this message. Include a date for your subsequent status update. Testers may discover new open items at any time, and I want to plan to get them all fixed well in advance of shipping v10. Consequently, I will appreciate your efforts toward speedy resolution. Thanks. [1] https://www.postgresql.org/message-id/20170404140717.GA2675809%40tornado.leadboat.com -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs