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

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: cameron.ezell@clearcapital.com, pgsql-bugs@lists.postgresql.org, peter.eisentraut@2ndquadrant.com
Date: 2020-04-15T23:52:21Z
Lists: pgsql-bugs
David Rowley <dgrowleyml@gmail.com> 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



Commits

  1. Fix possible crash with GENERATED ALWAYS columns