Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDXM2-0005Zj-1a for pgsql-bugs@arkaria.postgresql.org; Wed, 24 May 2017 14:33:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dDXM1-0005FP-KY for pgsql-bugs@arkaria.postgresql.org; Wed, 24 May 2017 14:33:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dDXLJ-0001qZ-HL; Wed, 24 May 2017 14:32:53 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dDXLF-00020U-Ek; Wed, 24 May 2017 14:32:53 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 19ACE20C35; Wed, 24 May 2017 10:32:48 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 24 May 2017 10:32:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=Qj4Fu5WPcYIQqc9oND NPiHydAE32sCx4p/hoZhtdPXw=; b=I9i41dGlxD5vN88FjMDDzHE/V9bLYxftpb ogrWn7OKeQKTpsR/qNJKCbOTTlmRARRw58aLkFXIoYtaeFq9jaod7MDcwmLJlJx9 Wln7J3mvMw8HTXjhBNXJ33ZDopyhac22KZQTJ7kVsfPaozYtHMBlBE4Xj2e5LSIZ GZcyikiextBCc2ne9YcfNk3x2POw8iajQnGIHJ7r4VIVVYNtIHrzmk3eRSDJyTcr aOTXDIw8irQBsKtlXrZM56zDxjI+eLZAwLiV7Rxf+1UsNME0BuCMktaeNHTnKExq GTiUgWJFykyx9j1RXlYJcUtOvLZGCM+58IlD6djmDiK29+J4KQuA== X-ME-Sender: X-Sasl-enc: 00s5GLWmVjfXkHZAnwsx9uA9oTmYWhAMCiQ0DbIsVDgQ 1495636367 Received: from intern.anarazel.de (unknown [172.56.7.93]) by mail.messagingengine.com (Postfix) with ESMTPA id ACA877E755; Wed, 24 May 2017 10:32:47 -0400 (EDT) Date: Wed, 24 May 2017 07:32:40 -0700 From: Andres Freund To: Robert Haas Cc: "pgsql-hackers@postgresql.org" , Peter Eisentraut , Michael Paquier , Noah Misch , Jason Petersen , PostgreSQL mailing lists Subject: Re: [HACKERS] Concurrent ALTER SEQUENCE RESTART Regression Message-ID: <20170524143239.2dzn3hq3k5wt6shf@alap3.anarazel.de> References: <2a1e0c9e-8485-dfd8-86b8-a95542deec30@2ndquadrant.com> <20170518205428.kxxtsdl6wswnz3e3@alap3.anarazel.de> <20170522154227.nvafbsm62sjpbxvd@alap3.anarazel.de> <20170524032516.rsggec2yrd4cqvv2@alap3.anarazel.de> <54DD1674-B9FC-4723-AC3E-890373889E25@anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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 2017-05-24 10:24:19 -0400, Robert Haas wrote: > On Wed, May 24, 2017 at 9:04 AM, Andres Freund 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