1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

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.
This commit is contained in:
Robert Haas
2016-07-01 10:13:06 -04:00
parent 4f9f495889
commit 5f3499b2b5
2 changed files with 26 additions and 26 deletions

View File

@ -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(");