Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axeP1-0007r9-R7 for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:46:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axeP1-0002vh-DS for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:46:31 +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 1axeNf-0007P4-1l for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:45:07 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axeNY-0008Cy-IT for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:45:05 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 9F639209B3 for ; Tue, 3 May 2016 13:44:59 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 03 May 2016 13:44:59 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=+OKXReOIxk7ISkA3c1hoZGPMTcM=; b=UvNNO PohCACqBme0BtRRiXF/TA/iKFpwFJtIvnElyomIk8Sm7JEQoPzXRXF/UU9WzFZ3L fclc7cZZ8OY8cm2rin4Gmd/vN/ttwHfnMUmOBpJYS83CLLIkDAc6MUCjOElsw5Gv FWHh64vy5qNTQFxgk9GcIwNftGLL4Ne3KBDC1w= X-Sasl-enc: mAMhYZCg9GcEwOydguxKV1saxcdp9N65bhcFoBqfXzUo 1462297499 Received: from intern.anarazel.de (unknown [162.217.75.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 52B3068025F; Tue, 3 May 2016 13:44:59 -0400 (EDT) Date: Tue, 3 May 2016 10:44:57 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@postgreSQL.org Subject: Re: ALTER TABLE lock downgrades have broken pg_upgrade Message-ID: <20160503174457.p6exbeehmfmgml3w@alap3.anarazel.de> References: <8110.1462291671@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8110.1462291671@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 2016-05-03 12:07:51 -0400, Tom Lane wrote: > I think possibly the easiest fix for this is to have pg_upgrade, > instead of RESETting a nonexistent option, RESET something that's > still considered to require AccessExclusiveLock. "user_catalog_table" > would work, looks like; though I'd want to annotate its entry in > reloptions.c to warn people away from downgrading its lock level. Alternatively we could just add a function for adding a toast table - that seems less hacky and less likely to be broken in the future. - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers