mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Change SeqScan node to contain Scan node
This makes the structure of all Scan-derived nodes the same, independent of whether they have additional fields. Discussion: https://www.postgresql.org/message-id/flat/c1097590-a6a4-486a-64b1-e1f9cc0533ce@enterprisedb.com
This commit is contained in:
@ -151,7 +151,7 @@ ExecInitSeqScan(SeqScan *node, EState *estate, int eflags)
|
||||
*/
|
||||
scanstate->ss.ss_currentRelation =
|
||||
ExecOpenScanRelation(estate,
|
||||
node->scanrelid,
|
||||
node->scan.scanrelid,
|
||||
eflags);
|
||||
|
||||
/* and create slot with the appropriate rowtype */
|
||||
@ -169,7 +169,7 @@ ExecInitSeqScan(SeqScan *node, EState *estate, int eflags)
|
||||
* initialize child expressions
|
||||
*/
|
||||
scanstate->ss.ps.qual =
|
||||
ExecInitQual(node->plan.qual, (PlanState *) scanstate);
|
||||
ExecInitQual(node->scan.plan.qual, (PlanState *) scanstate);
|
||||
|
||||
return scanstate;
|
||||
}
|
||||
|
Reference in New Issue
Block a user