Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iILEJ-0002li-Az for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Oct 2019 23:18:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iILEH-0002nv-Lw for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Oct 2019 23:18:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iILEH-0002ni-Af for pgsql-bugs@lists.postgresql.org; Wed, 09 Oct 2019 23:18:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iILEF-0001X5-5i for pgsql-bugs@lists.postgresql.org; Wed, 09 Oct 2019 23:18:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x99NIjjQ019315; Wed, 9 Oct 2019 19:18:45 -0400 From: Tom Lane To: Tomas Vondra cc: buschmann@nidsa.net, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16045: vacuum_db crash and illegal memory alloc after pg_upgrade from PG11 to PG12 In-reply-to: <20191009230759.ge66neof5qj627a2@development> References: <16045-673e8fa6b5ace196@postgresql.org> <20191009132436.uugh4r3be6vw6ex4@development> <20191009135907.km2b5nrzflcz6xey@development> <20191009141841.my6k44wfiaquj3ks@development> <20191009230759.ge66neof5qj627a2@development> Comments: In-reply-to Tomas Vondra message dated "Thu, 10 Oct 2019 01:07:59 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19313.1570663125.1@sss.pgh.pa.us> Date: Wed, 09 Oct 2019 19:18:45 -0400 Message-ID: <19314.1570663125@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > Well, I think I found the root cause. It's because of 7c15cef86d, which > changed the definition of sql_identifier so that it's a domain over name > instead of varchar. Ah... > Not sure what to do about this :-( Fortunately, there should be close to zero people with user tables depending on sql_identifier. I think we should just add a test in pg_upgrade that refuses to upgrade if there are any such columns. It won't be the first such restriction. regards, tom lane