aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-07-19 08:01:40 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-07-19 08:20:24 +0200
commit2b00db4fb0c7f02f000276bfadaab65a14059168 (patch)
treebe8cdeaa98656fe52c7bbd47e68a221b16840308 /src/backend/executor
parent29abde637bbb4b8fcdc96e049813890afa5ab671 (diff)
downloadpostgresql-2b00db4fb0c7f02f000276bfadaab65a14059168.tar.gz
postgresql-2b00db4fb0c7f02f000276bfadaab65a14059168.zip
Use l*_node() family of functions where appropriate
Instead of castNode(…, lfoo(…)) Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://www.postgresql.org/message-id/flat/87eecahraj.fsf@wibble.ilmari.org
Diffstat (limited to 'src/backend/executor')
-rw-r--r--src/backend/executor/execPartition.c2
-rw-r--r--src/backend/executor/nodeValuesscan.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/executor/execPartition.c b/src/backend/executor/execPartition.c
index 606c920b068..5c723bc54e1 100644
--- a/src/backend/executor/execPartition.c
+++ b/src/backend/executor/execPartition.c
@@ -585,7 +585,7 @@ ExecInitPartitionInfo(ModifyTableState *mtstate, EState *estate,
foreach(ll, wcoList)
{
- WithCheckOption *wco = castNode(WithCheckOption, lfirst(ll));
+ WithCheckOption *wco = lfirst_node(WithCheckOption, ll);
ExprState *wcoExpr = ExecInitQual(castNode(List, wco->qual),
&mtstate->ps);
diff --git a/src/backend/executor/nodeValuesscan.c b/src/backend/executor/nodeValuesscan.c
index 5de1429fdaa..00bd1271e49 100644
--- a/src/backend/executor/nodeValuesscan.c
+++ b/src/backend/executor/nodeValuesscan.c
@@ -285,7 +285,7 @@ ExecInitValuesScan(ValuesScan *node, EState *estate, int eflags)
i = 0;
foreach(vtl, node->values_lists)
{
- List *exprs = castNode(List, lfirst(vtl));
+ List *exprs = lfirst_node(List, vtl);
scanstate->exprlists[i] = exprs;