Re: BUG #16369: Segmentation Faults and Data Corruption with Generated Columns - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #16369: Segmentation Faults and Data Corruption with Generated Columns
Date
Msg-id 1047.1586994741@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #16369: Segmentation Faults and Data Corruption withGenerated Columns  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: BUG #16369: Segmentation Faults and Data Corruption withGenerated Columns
List 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



pgsql-bugs by date:

Previous
From: David Rowley
Date:
Subject: Re: BUG #16369: Segmentation Faults and Data Corruption withGenerated Columns
Next
From: Tom Lane
Date:
Subject: Re: BUG #16368: Incorrect function inlining in the presence of a window function