Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axeTZ-00085j-0C for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:51:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axeTY-00082y-GZ for pgsql-hackers@arkaria.postgresql.org; Tue, 03 May 2016 17:51:12 +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 1axeSD-0006ON-L8 for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:49:49 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axeSB-0008Lz-0u for pgsql-hackers@postgreSQL.org; Tue, 03 May 2016 17:49:48 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 46A5B5F7A4; Tue, 3 May 2016 13:49:46 -0400 (EDT) Date: Tue, 3 May 2016 13:49:46 -0400 From: Stephen Frost To: Andres Freund Cc: Tom Lane , pgsql-hackers@postgreSQL.org Subject: Re: ALTER TABLE lock downgrades have broken pg_upgrade Message-ID: <20160503174946.GQ10850@tamriel.snowman.net> References: <8110.1462291671@sss.pgh.pa.us> <20160503174457.p6exbeehmfmgml3w@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wJuVzfoz79HeRV+Q" Content-Disposition: inline In-Reply-To: <20160503174457.p6exbeehmfmgml3w@alap3.anarazel.de> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 13:49:35 up 70 days, 14:42, 23 users, load average: 0.62, 0.40, 0.29 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.9 (--) 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 --wJuVzfoz79HeRV+Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Andres Freund (andres@anarazel.de) wrote: > 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. >=20 > 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. +1 Thanks! Stephen --wJuVzfoz79HeRV+Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXKOS5AAoJEO1sijiDR2RVCT4P/04/lk6bIrNZ2QZWv5y9tkC9 g6KBZ59b+j3Jta8ntO1bnK3HOXFa6tffbsEGUYWxhck8W3L+ubV+lUEBt+3SIwoa 47uWEFwO3jIu3absYLEy0FWRJBVhrFbla9goydW8z62OEOCi6TYwCnmrB+D4k4uo DsEFDkgDhGxPML5cnJB0elRbduOHc2eThJPGTqPksVxJ2FNOVpc+b7VofyzkNgOa JmS0Dpr4yRR1m5/toQGgFex7RYHCM6HgO+nzw5hHkBaplLvMJ/mx12uIm4Qodve3 Zz+E5dS+dvXdwFhq7aGSeo6+3ooyXSgU/8Lyzuc0c9ddgqMlfAp8s1qdghnjuEoe nQ5njp7pb5a8qoWizvlRsPNEELMiuDHqgjPHK7UAx7QG+MsyBb1heJGPeYBr3IV0 NvNhTCrzR3F1T0b7kZa+xmNZzDDSGKzQHKXakfGlja3Lk3Pp7DweLoOD/QIDSiiv cIiT1LzCXmGI+Al0J0piUIj8C3SSfKpSnR1bvJyyAbMVoWTD/a/wvlF2YtryxcPg MVdpsR6PeQQ1oVYon0Cjbmzq+bIhp3CBZwmWl/Z1c1XUZ94wrkYQRraffkIVHW2t +ConzoNc3N1dUoe21bK5OfUcdeo/pkDq0TD9v6qA8/q5rsiXXIIYSeyltFcRiHcO Vn8COyZfjHy1wN0Os9Mi =siQT -----END PGP SIGNATURE----- --wJuVzfoz79HeRV+Q--