Re: BUG #16369: Segmentation Faults and Data Corruption with Generated Columns

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, cameron.ezell@clearcapital.com, pgsql-bugs@lists.postgresql.org, peter.eisentraut@2ndquadrant.com
Date: 2020-04-16T05:30:36Z
Lists: pgsql-bugs
On Thu, Apr 16, 2020 at 12:40:24PM +1200, David Rowley wrote:
> On Thu, 16 Apr 2020 at 11:52, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> That looks like it'll fail on a null result.
> 
> Thanks.  I'll have another go then.

Shouldn't you have more regression test cases here?  I guess one for
the non-NULL case, and one for the NULL case?
--
Michael

Commits

  1. Fix possible crash with GENERATED ALWAYS columns