aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/deparse.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-10-26 10:19:27 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-10-26 10:19:41 -0400
commit8529686ccbb9f1c2fe350920ad324c223135a957 (patch)
treec9e5b9e3d29999a5d695be4c1df35663b65a9505 /contrib/postgres_fdw/deparse.c
parent8eb6337f9f53c85e707f60157e42fcacfe927668 (diff)
downloadpostgresql-8529686ccbb9f1c2fe350920ad324c223135a957.tar.gz
postgresql-8529686ccbb9f1c2fe350920ad324c223135a957.zip
Suppress unused-variable warning in non-assert builds.
Introduced in commit 7012b132d. Kyotaro Horiguchi
Diffstat (limited to 'contrib/postgres_fdw/deparse.c')
-rw-r--r--contrib/postgres_fdw/deparse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/postgres_fdw/deparse.c b/contrib/postgres_fdw/deparse.c
index 8da8c114a82..450693ad820 100644
--- a/contrib/postgres_fdw/deparse.c
+++ b/contrib/postgres_fdw/deparse.c
@@ -1026,11 +1026,10 @@ static void
deparseFromExpr(List *quals, deparse_expr_cxt *context)
{
StringInfo buf = context->buf;
- RelOptInfo *foreignrel = context->foreignrel;
RelOptInfo *scanrel = context->scanrel;
/* For upper relations, scanrel must be either a joinrel or a baserel */
- Assert(foreignrel->reloptkind != RELOPT_UPPER_REL ||
+ Assert(context->foreignrel->reloptkind != RELOPT_UPPER_REL ||
scanrel->reloptkind == RELOPT_JOINREL ||
scanrel->reloptkind == RELOPT_BASEREL);