diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-07-01 10:13:06 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-07-01 10:14:42 -0400 |
commit | 5f3499b2b5455a2966faee30fd3f6d2776219858 (patch) | |
tree | cab235fe951ab60cf2d087ae0c956b04a9d6bf1b /contrib/postgres_fdw/deparse.c | |
parent | 4f9f495889d3d410195c9891b58228727b340189 (diff) |
postgres_fdw: Remove schema-qualification from cast to text.
As pointed out by Ashutosh Bapat, the header comments for this file
say that schema-qualification is needed for all and only those types
outside pg_catalog. pg_catalog.text is not outside pg_catalog.
Diffstat (limited to 'contrib/postgres_fdw/deparse.c')
-rw-r--r-- | contrib/postgres_fdw/deparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/postgres_fdw/deparse.c b/contrib/postgres_fdw/deparse.c index 2ca0e0ccf12..0c288c83225 100644 --- a/contrib/postgres_fdw/deparse.c +++ b/contrib/postgres_fdw/deparse.c @@ -1601,7 +1601,7 @@ deparseColumnRef(StringInfo buf, int varno, int varattno, PlannerInfo *root, { appendStringInfoString(buf, "CASE WHEN ("); ADD_REL_QUALIFIER(buf, varno); - appendStringInfo(buf, "*)::pg_catalog.text IS NOT NULL THEN %u END", fetchval); + appendStringInfo(buf, "*)::text IS NOT NULL THEN %u END", fetchval); } else appendStringInfo(buf, "%u", fetchval); @@ -1645,7 +1645,7 @@ deparseColumnRef(StringInfo buf, int varno, int varattno, PlannerInfo *root, { appendStringInfoString(buf, "CASE WHEN ("); ADD_REL_QUALIFIER(buf, varno); - appendStringInfo(buf, "*)::pg_catalog.text IS NOT NULL THEN "); + appendStringInfo(buf, "*)::text IS NOT NULL THEN "); } appendStringInfoString(buf, "ROW("); |