diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-02-10 08:17:43 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-02-10 08:17:43 -0500 |
commit | 019e78813760e664a85f505b5953d362a2b468cc (patch) | |
tree | cf1e33bb85e8e348e1bbfe7e165d762b0649d025 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 41d505a7ffaf8c1678b931e15f74469c84fbb91e (diff) | |
download | postgresql-019e78813760e664a85f505b5953d362a2b468cc.tar.gz postgresql-019e78813760e664a85f505b5953d362a2b468cc.zip |
postgres_fdw: Remove unnecessary variable.
It causes warnings in non-Assert-enabled builds.
Per report from Jeff Janes.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
-rw-r--r-- | contrib/postgres_fdw/postgres_fdw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index 14a3f9891a9..ffe6388a23b 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -2523,9 +2523,8 @@ fetch_more_data(ForeignScanState *node) for (i = 0; i < numrows; i++) { - ForeignScan *fsplan = (ForeignScan *) node->ss.ps.plan; + Assert(IsA(node->ss.ps.plan, ForeignScan)); - Assert(IsA(fsplan, ForeignScan)); fsstate->tuples[i] = make_tuple_from_result_row(res, i, fsstate->rel, |