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 1iKkN7-0001ny-Tj for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Oct 2019 14:33:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iKkN6-0005Xq-DE for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Oct 2019 14:33:52 +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 1iKkN5-0005XO-SR for pgsql-bugs@lists.postgresql.org; Wed, 16 Oct 2019 14:33:52 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iKkN3-0003xK-2q for pgsql-bugs@lists.postgresql.org; Wed, 16 Oct 2019 14:33:50 +0000 Received: by mail-wr1-x441.google.com with SMTP id j11so28359977wrp.1 for ; Wed, 16 Oct 2019 07:33:48 -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=koauqa34EmmQjGsVo4VrDGjN9FZFBtkDxq8+yF3z+Sk=; b=ircKX3E5n3hu6knqhWmYl2eyJJYG9tGiZjeTaykMrJWCh33+CUtH3Rtz4sL+lA3zX0 IhNWMEPYMOtNo1zbuIexMjd/cFmwAME/HPsKpZoMS6xaZD015lyZFFE959j7cQOpWS3Z SvACNpfytxNM1qT5NHjM1innvjh7DErSFJMmhF+7CPXBUPHXmTumzmly2uBimtgt8FWy QHVRKdhR7n28Y7m8X1R3+8hrs7XdJsrAvms31j+eHJ8d7/SlbNZ+DTj9Te2nUFfC/VGc D0gVHoMJyDq53uWxPuxFaI7M8kXz4bQysblO6XkN9gg8qZTUAsYMisVD3StAQXCeSN5K ShWA== 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=koauqa34EmmQjGsVo4VrDGjN9FZFBtkDxq8+yF3z+Sk=; b=RDUREua6q0uK5zGgTA6yGl+YeJAlKoVc9N+gPf/c0ksXIAla1zq9QWPZGXzbgaCDue QSrRpTxGBBWpJKh11Zr63bXZmee4sjLXrffb6DCGE86Aw+jYeegOa4Ycqrs5lIM+SwZL BxhCLIwtsWtIR6r3n/gdnsZam8Tvx3m+r0SG856xysJAGu3ZKL5jkIIvcrIB7TVJ4c5T dfrRxdf+16ZwtDHEL74ls0EOyAQ7iAqlIv5PppZbVXR8vEY0v/JIGTH/uVs0Tqd7Sp3O pbNvhTl58panUcwwJS4PsOd9DGAlFpNNyysYqnaBNmCL6y8Ly3OGPA9IFTpDezSpB92M dj7Q== X-Gm-Message-State: APjAAAUc6pmevoduNI7EDJ4o0LboBx3+eLC/P/ktu5ZiSBsc2+AeM6su qqfGgKr5tJHLMRcx5pBxXGMRHg== X-Google-Smtp-Source: APXvYqw7x1eWfJGCoTS1RFo6d+NTD5KyubGXmsCmH8C9ClhLYZfoQNA7bzQ5a1Mr/uUR1XercMyCUQ== X-Received: by 2002:a5d:420c:: with SMTP id n12mr2879581wrq.85.1571236426895; Wed, 16 Oct 2019 07:33:46 -0700 (PDT) Received: from localhost (cst-prg-23-73.cust.vodafone.cz. [46.135.23.73]) by smtp.gmail.com with ESMTPSA id x129sm3689654wmg.8.2019.10.16.07.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 07:33:45 -0700 (PDT) Date: Wed, 16 Oct 2019 16:33:43 +0200 From: Tomas Vondra To: Tom Lane Cc: Andres Freund , 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: <20191016143343.7tq374yllq3zoglv@development> References: <20191010204022.6hiiubm2cueu3ghk@development> <20191013001032.lqrn4kqaovhrf77l@development> <17717.1570991208@sss.pgh.pa.us> <20191013203848.2eksimmpux3546wr@development> <27596.1571062600@sss.pgh.pa.us> <20191014163538.cqn6j4cl7s2mk2yz@development> <20191015001817.zei45apgpu5dzngr@development> <20191016113344.ihrjpztakfppgilp@development> <11353.1571228877@sss.pgh.pa.us> <11665.1571232402@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <11665.1571232402@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 16, 2019 at 03:26:42PM +0200, Tom Lane wrote: >I wrote: >> Tomas Vondra writes: >>> I've just committed and pushed both fixes after some minor corrections. > >> Not quite right in 9.6 and before, according to crake. Looks like >> some issue with the CppAsString2'd constants? Did we even have >> CppAsString2 that far back? > >Yeah, we did. On closer inspection I suspect that we need to #include >some other file to get the RELKIND_ constants in the old branches. > Yeah, the pg_class.h catalog was missing on pre-10 relases. It compiled just fine, so I haven't noticed that during the backpatching :-( Fixed, let's see if the buildfarm is happy with that. regads -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services