projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41d505a
)
postgres_fdw: Remove unnecessary variable.
author
Robert Haas
<
[email protected]
>
Wed, 10 Feb 2016 13:17:43 +0000
(08:17 -0500)
committer
Robert Haas
<
[email protected]
>
Wed, 10 Feb 2016 13:17:43 +0000
(08:17 -0500)
It causes warnings in non-Assert-enabled builds.
Per report from Jeff Janes.
contrib/postgres_fdw/postgres_fdw.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/postgres_fdw/postgres_fdw.c
b/contrib/postgres_fdw/postgres_fdw.c
index 14a3f9891a965840ceba1f294f58c848998daafb..ffe6388a23bbc57b80fe5092bb29ad356134f8de 100644
(file)
--- 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,