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 1jOrpX-0008G0-Ob for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Apr 2020 23:52:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jOrpW-0004j9-Do for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Apr 2020 23:52:30 +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 1jOrpW-0004gg-7g for pgsql-bugs@lists.postgresql.org; Wed, 15 Apr 2020 23:52:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOrpT-0008JZ-6x for pgsql-bugs@lists.postgresql.org; Wed, 15 Apr 2020 23:52:29 +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 03FNqLRn001048; Wed, 15 Apr 2020 19:52:21 -0400 From: Tom Lane To: David Rowley cc: cameron.ezell@clearcapital.com, pgsql-bugs@lists.postgresql.org, peter.eisentraut@2ndquadrant.com Subject: Re: BUG #16369: Segmentation Faults and Data Corruption with Generated Columns In-reply-to: References: <16369-5845a6f1bef59884@postgresql.org> Comments: In-reply-to David Rowley message dated "Thu, 16 Apr 2020 11:35:57 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1046.1586994741.1@sss.pgh.pa.us> Date: Wed, 15 Apr 2020 19:52:21 -0400 Message-ID: <1047.1586994741@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Rowley writes: > I'd say the fix should be to just datumCopy() the result of the > calculation. i.e the attached. That looks like it'll fail on a null result. regards, tom lane