From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Andres Freund <andres(at)anarazel(dot)de> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, exclusion(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #17056: Segmentation fault on altering the type of the foreign table column with a default |
Date: | 2021-06-13 01:59:24 |
Message-ID: | 759e997e-e1ca-91cd-84db-f4ae963fada1@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On 6/12/21 5:50 PM, Andres Freund wrote:
> Hi,
>
> On 2021-06-12 17:40:38 -0400, Andrew Dunstan wrote:
>> Ok, I think the attached is the least we need to do. Given this I
>> haven't been able to induce a crash even when the catalog is hacked with
>> bogus missing values on a foreign table. But I'm not 100% convinced I
>> have fixed all the places that need to be fixed.
> Hm. There's a few places that look at atthasmissing and just assume that
> there's corresponding information about the missing field. And as far as
> I can see the proposed changes in RelationBuildTupleDesc() don't unset
> atthasmissing, they just prevent the constraint part of the tuple desc
> from being filled. Wouldn't this cause problems if we reach code like
>
Yes, you're right. This version should take care of things better.
Thanks for looking.
cheers
andrew
Attachment | Content-Type | Size |
---|---|---|
nonlocal-missing-values-fix3.patch | text/x-patch | 2.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2021-06-13 08:56:24 | BUG #17058: Unable to create collation in version 13. |
Previous Message | Andres Freund | 2021-06-12 21:50:03 | Re: BUG #17056: Segmentation fault on altering the type of the foreign table column with a default |
From | Date | Subject | |
---|---|---|---|
Next Message | Geoff Winkless | 2021-06-13 06:36:54 | Re: "an SQL" vs. "a SQL" |
Previous Message | Alvaro Herrera | 2021-06-13 00:40:40 | Re: Fdw batch insert error out when set batch_size > 65535 |