Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKVGN-0001c7-NC for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Jun 2017 19:44:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKVGN-0005WM-54 for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Jun 2017 19:44:35 +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 1dKVEq-0002k4-Kf for pgsql-hackers@postgreSQL.org; Mon, 12 Jun 2017 19:43:00 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKVEo-0007Y3-2P for pgsql-hackers@postgreSQL.org; Mon, 12 Jun 2017 19:43:00 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C3C2220A4B; Mon, 12 Jun 2017 15:42:56 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 12 Jun 2017 15:42:56 -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=vmn7CeKlL6TX3j/uls 6H/1yYGpxHRnGler7YccfeZC0=; b=i5p/gZ9KJAJOTiiJEBKkXLp5fDCoeroEs0 XqvjJ0e5kkXtZz0XeW3qr7bxti2c6sLnQ72iDIJxG1hV0HHL+L1YgHnqYBTUGXFG PuaZVUQaIE9wOfTFLt3Z09dcVWWcKgLVpqRBJTh67wM3xfILixzBWnfbDmdUe2GD 3iJoRQOTM7AKoNiBtXzK+qj4JjVbqicktasznK7Dtr3HOAYZaP6O5YZ/kNXasoW4 ZSS4hhA3e6EU9aplCQYoIeUk/Sg28Gyas6xnr+CeoCIT4Mpg/yde6TIDBl3d79zz JonvSQ8X4iIvwp4AXq3ZzIeJpefpoVSDtUVRgtHR5VN6BVVS9wlg== X-ME-Sender: X-Sasl-enc: rDH+tV0pDPKgXdXXzEQ3v94c4UkeGee0CAt4+eHuiv5J 1497296576 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 7907A7E814; Mon, 12 Jun 2017 15:42:56 -0400 (EDT) Date: Mon, 12 Jun 2017 12:42:55 -0700 From: Andres Freund To: Tom Lane Cc: Peter Eisentraut , pgsql-hackers@postgreSQL.org Subject: Re: Transactional sequence stuff breaks pg_upgrade Message-ID: <20170612194255.2bycut4rm5wqyleb@alap3.anarazel.de> References: <19785.1497215827@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19785.1497215827@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi, On 2017-06-11 17:17:07 -0400, Tom Lane wrote: > I am not very sure why it's so hard to duplicate the misbehavior; perhaps, > in order to make the failure happen with the current regression tests, > it's necessary for a background auto-analyze to happen and consume some > OIDs (for pg_statistic TOAST entries) at just the wrong time. However, > I can definitely demonstrate that there are uncontrolled relfilenode > assignments happening during pg_upgrade's restore run. I stuck an > elog() call into GetNewObjectId(), along with generation of a stack > trace using backtrace(), and here is one example: Yea, that's not all that surprising :/ > Judging by when we started to see buildfarm failures, I think that > commit 3d79013b9 probably broke it, but the problem seems latent > in the whole concept of transactional sequence information. Hm. > Not sure what we want to do about it. One idea is to make > ALTER SEQUENCE not so transactional when in binary-upgrade mode. I think what you proposed downthread makes sense - I'd ripped out fairly similar code in my recent changes, because it was only introduced to address the concurrency problems the new sequence code had, and it didn't seem to buy sufficiently much... - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers