Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eiXFn-000505-F5 for pgsql-committers@arkaria.postgresql.org; Mon, 05 Feb 2018 03:15:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiXFm-00044C-HW for pgsql-committers@arkaria.postgresql.org; Mon, 05 Feb 2018 03:15:34 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eiXFm-00043x-9z for pgsql-committers@lists.postgresql.org; Mon, 05 Feb 2018 03:15:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eiXFj-00086l-Gk for pgsql-committers@postgresql.org; Mon, 05 Feb 2018 03:15:33 +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 w153FT6c006687; Sun, 4 Feb 2018 22:15:29 -0500 From: Tom Lane To: Thomas Munro cc: pgsql-committers Subject: Re: pgsql: Fix another instance of unsafe coding for shm_toc_lookup failure In-reply-to: References: <9324.1517623729@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Mon, 05 Feb 2018 15:47:13 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6685.1517800529.1@sss.pgh.pa.us> Date: Sun, 04 Feb 2018 22:15:29 -0500 Message-ID: <6686.1517800529@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Sat, Feb 3, 2018 at 3:08 PM, Tom Lane wrote: >> OK. Please send in a patch to either do that or switch this call to use >> noError = false. Or possibly both: shouldn't there be some other signal >> path that tells the worker whether instrumentation is needed? I'll >> leave it alone pending your investigation. > Here's a patch do to both. LGTM, pushed. regards, tom lane