Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYBU0-0003Bd-3s for pgsql-hackers@arkaria.postgresql.org; Sat, 26 Mar 2022 18:49:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nYBTy-0000b1-Vt for pgsql-hackers@arkaria.postgresql.org; Sat, 26 Mar 2022 18:49:50 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYBTy-0000as-Mq for pgsql-hackers@lists.postgresql.org; Sat, 26 Mar 2022 18:49:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nYBTw-000765-FN for pgsql-hackers@lists.postgresql.org; Sat, 26 Mar 2022 18:49:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 22QIni3K136315; Sat, 26 Mar 2022 14:49:44 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org, Robert Haas , Thomas Munro Subject: Re: Pointer subtraction with a null pointer In-reply-to: <20220326184147.dhkoghv52kkfrpi4@alap3.anarazel.de> References: <48826.1648310694@sss.pgh.pa.us> <49360.1648311192@sss.pgh.pa.us> <20220326163441.qzpcioycozbzarsf@alap3.anarazel.de> <51678.1648312664@sss.pgh.pa.us> <55128.1648315414@sss.pgh.pa.us> <20220326174953.gdeasrl5wzal42ic@alap3.anarazel.de> <103098.1648318436@sss.pgh.pa.us> <20220326184147.dhkoghv52kkfrpi4@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 26 Mar 2022 11:41:47 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <136313.1648320584.1@sss.pgh.pa.us> Date: Sat, 26 Mar 2022 14:49:44 -0400 Message-ID: <136314.1648320584@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > Looks good wrt relptr_store. Maybe we should fix the double-eval hazard in > relptr_access too, think that'd be only one left over... Hm. Probably not worth the trouble, because it's hard to envision a situation where rp is not a plain lvalue. regards, tom lane