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 1iILNt-00030y-Rx for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Oct 2019 23:28:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iILNr-0004kD-2f for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Oct 2019 23:28:43 +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 1iILNq-0004k2-NC for pgsql-bugs@lists.postgresql.org; Wed, 09 Oct 2019 23:28:42 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iILNn-0001bL-Sz for pgsql-bugs@lists.postgresql.org; Wed, 09 Oct 2019 23:28:41 +0000 Received: by mail-wr1-x443.google.com with SMTP id r5so5265244wrm.12 for ; Wed, 09 Oct 2019 16:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9+ZTo42ghZ92kjuGzk9i0w/zASzAcyFtPtzlFyuVbXo=; b=KK8h5S9YM2apzClrE7eXkItiqg+MAzGvylqHT8N4YJj+7bRfxBb3364qy1y1spSLlS yj6ZnO4mIJOps1DPsPvUr4VbWnOXPUt1Apb/9FLC1m0L0WO4X1UaqXVGseekiCYZrzKs p1nfmAIgmzad8kZNv60eA9D3BisZpQ6P4LJXwhT9LG1oAjdCZfvfy2eSYHm1kKHmit3s F4mJHRvgBkuEKERp/xaTfEv9lfdmcZukD+lX11O1TRwbuqqdLoMOoVCflpaP/V2F+7Wu MNY7NqZzfhhwUQJcaK3zleI0rE5+wyXIcUUvZ1lzywArr7zYKGREOV49vYaJ0NBZjIg0 HWqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9+ZTo42ghZ92kjuGzk9i0w/zASzAcyFtPtzlFyuVbXo=; b=irmA2oteA6KzJEnPI+lEEQt3d4X+rb5/mkfdHVs5nIsU210diuet1AoV+J7R9JcpOR 2wi1tPMUR4BwU5Boza3203IHRUBn/LUDZwadvGKyIlrE3PPS9XBThWWeRZ1WoFpzl6vA EpFhlFGqntpmuVGcjC2/JMy5s/n1Q9Bzue9xZe/vjM0Ix29Z8vh+QaQURI6CYdPic+fp 6czTIMxqA6SGd4/YqWAxWbwOmQt0Dc5Y1EwzOEWjT9GRp07fmWV3BRLTe+l0YlfYfSw+ zZ0c/8T3+8iJ68FXoOadlJjHM1H5kBxvbLGHNX708Pkv90H/wwShrLDOW/LH0iJHJZ3I 4AOw== X-Gm-Message-State: APjAAAXBlIdFGcrEvRq58mOjs1DItXH4/ozKblYHlK/wpVtvtB2J1eMC M2P2B7Ysv1FXdert383mNIIPlw== X-Google-Smtp-Source: APXvYqy4hqBms7ClVog9H7X7v5zBKcLND18uyzUFF4jkDxnAHzizDWISf1aZ+w5+ER20Ro+PvV4n4w== X-Received: by 2002:a5d:4108:: with SMTP id l8mr4803381wrp.391.1570663718331; Wed, 09 Oct 2019 16:28:38 -0700 (PDT) Received: from localhost (ip-86-49-253-183.net.upcbroadband.cz. [86.49.253.183]) by smtp.gmail.com with ESMTPSA id w18sm4055231wmc.9.2019.10.09.16.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 16:28:37 -0700 (PDT) Date: Thu, 10 Oct 2019 01:28:36 +0200 From: Tomas Vondra To: Tom Lane 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 Message-ID: <20191009232836.jg77wccqwy5fgs6s@development> References: <16045-673e8fa6b5ace196@postgresql.org> <20191009132436.uugh4r3be6vw6ex4@development> <20191009135907.km2b5nrzflcz6xey@development> <20191009141841.my6k44wfiaquj3ks@development> <20191009230759.ge66neof5qj627a2@development> <19314.1570663125@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <19314.1570663125@sss.pgh.pa.us> User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Oct 09, 2019 at 07:18:45PM -0400, Tom Lane wrote: >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. > Hmmm, yeah. I agree the number of people using sql_identifier in user tables is low, but OTOH we got this report within a week after release, so maybe it's higher than we think. Another option would be to teach pg_upgrade to switch the columns to 'text' or 'varchar', not sure if that's possible or how much work would that be. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services