回复: BUG #17998: Postgres crashes when executing WorkTableScan. - Mailing list pgsql-bugs

From 梁 成林
Subject 回复: BUG #17998: Postgres crashes when executing WorkTableScan.
Date
Msg-id DM6PR02MB66491619ED1CF10C16839F2E9026A@DM6PR02MB6649.namprd02.prod.outlook.com
Whole thread Raw
In response to BUG #17998: Postgres crashes when executing WorkTableScan.  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
Since pg is tested directly using the physical plan, the executed SQL includes a complete physical plan, and the abbreviated physical plan is:
WORKTABLESCAN{targetlist=[TargetEntry{targetexpr=CONST{constvalue ="61",consttype ="int4"},targetresname="Z",resjunk=False}],qual=[],wtParam = 59}


发件人: PG Bug reporting form <noreply@postgresql.org>
发送时间: 2023年6月26日 3:47
收件人: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
抄送: chenglin-liang@outlook.com <chenglin-liang@outlook.com>
主题: BUG #17998: Postgres crashes when executing WorkTableScan.
 
The following bug has been logged on the website:

Bug reference:      17998
Logged by:          Jerry
Email address:      chenglin-liang@outlook.com
PostgreSQL version: Unsupported/Unknown
Operating system:   Ubuntu 18.04.6
Description:       

I developed a fuzzing tool that skips the optimizer and directly uses the
correct physical plan to fuzz postgres, and found a crash caused by
executing WorkTableScan.
For detailed steps to reproduce, see the
link:https://github.com/chenglinLiang/pg-report.

-- Environment --
PG version: 10.23
Platform: Ubuntu 18.04.6
Kernel: Linux 5.15.0-75-generic

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17998: Postgres crashes when executing WorkTableScan.
Next
From: Michael Paquier
Date:
Subject: Re: BUG #17995: Segmentation fault caused by UPDATE statement