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.92) (envelope-from ) id 1jBKkg-0002Cx-53 for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2020 15:55:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jBKkf-0000aL-0X for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Mar 2020 15:55:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jBKke-0000aE-Go for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2020 15:55:32 +0000 Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jBKkb-0004Zz-Of for pgsql-hackers@lists.postgresql.org; Mon, 09 Mar 2020 15:55:32 +0000 Received: by mail-oi1-x244.google.com with SMTP id v19so10607293oic.12 for ; Mon, 09 Mar 2020 08:55:29 -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:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=PSPbaN4yofE/dC00Q5o8f5z7QuA60GVaeEq8aLoz0+c=; b=k2N0eQO+dlK9f32sMEDCr1IzUR2crd/dF1modsR0kl1HsGdngS3kNpqeF+OGHT03y8 Ovmg6H57mOxnydbIy8WUQUMZD9yTEess7vJeGjcP/VEdTVeZhSfhccR3ouFwRKeUzrsQ Tfxus6jQkBSCRmH3CTwtWGBM3Fod4T4ZvSwyA4ZF+nOx3s2TRxp/JWFZmqFJ2A7m8W0D a0NF7zBzL9meX0MYqjwrJgfRfusbnhcnv036MM4YQF9nMfCUSHLyOem3JRb1FiWHkZOB oLEp3zOqJNqgrEK7iqaJz7CNCOeIFCZhereU9bgGxEJfnEN6XojkYRId5XHywztgsbFC bygg== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=PSPbaN4yofE/dC00Q5o8f5z7QuA60GVaeEq8aLoz0+c=; b=IuDcfHvHGsZQeSvdrqUuHbTV80Z2EjCHbKlyw2Gc0+WsMxdciocihb8Zq5t5BDK8M8 jdsL5xO1ikaMG0fVFP389RK3uARSGYJeqNHEfArfNXEnVVvEfLs9Zz3gRX9mhZyry8qw pfk54vLJIb/iZrstWtZYofMCUcICPkHWo1P5zqqHCAaEndlHJANaG4z0nn8Wi0kivZLw +7ljGihVmhlbU2CIbyoPNEzpFGCGEG883RmPOaUAnp1AO3Y1uv8AtUyOSXKAjF+93P7R 0g3r8WHTrk6wbhw8G9U3uwKoEa46sQn7cKcZ+JTHI0Z2Bovdg/IQLMRsSDwDlU3zc5ZK mJoQ== X-Gm-Message-State: ANhLgQ0vmNo1DXoE/gqCV6sRsm58vBkY+f6Ka6HgtYfIKnR9rqdpHHON 7DesXwiKocvEQmv8UWlzE69OAAGOD3M= X-Google-Smtp-Source: ADFU+vvtwzApJsDmyCzfAYwiDu0GOLdAr5tkYXi5MwQkbMQjeF27noC12W1OgM0fJ09PlB110vlD0A== X-Received: by 2002:aca:1a06:: with SMTP id a6mr11261069oia.148.1583769327826; Mon, 09 Mar 2020 08:55:27 -0700 (PDT) Received: from nimloth.alvh.no-ip.org (ip-168-232-239-173.texas.us.northamericancoax.com. [173.239.232.168]) by smtp.gmail.com with ESMTPSA id x3sm7030975otq.30.2020.03.09.08.55.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 08:55:27 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 4A9253007FC; Mon, 9 Mar 2020 12:55:24 -0300 (-03) Date: Mon, 9 Mar 2020 12:55:24 -0300 From: Alvaro Herrera To: Peter Geoghegan Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: pageinspect: Fix types used for bt_metap() columns. Message-ID: <20200309155524.GA5282@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Mar-08, Peter Geoghegan wrote: > Fix these issues by changing the declaration of bt_metap() to > consistently use data types that can reliably represent all possible > values. This fixes things on HEAD only. No backpatch, since it doesn't > seem like there is a safe way to fix the issue without including a new > version of the pageinspect extension (HEAD/Postgres 13 already > introduced a new version of the extension). Besides, the oldest_xact > issue has been around since the release of Postgres 11, and we haven't > heard any complaints about it before now. This may be a good time to think through about how to implement a version history for an extension that enables users to go from pg12's current 1.7 pageinspect to a new fixed version in pg12, say 1.7.1, and in HEAD provide an upgrade path from both 1.7 and 1.7.1 to master's 1.8. Then you can pg_upgrade from pg12 to pg13 having either 1.7 or 1.7.1, and you will be able to get to 1.8 nonetheless. Does that make sense? The current problem might not be serious enough to warrant actually writing the code that would be needed, but I propose to at least think about it. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services