Index: src/backend/commands/explain.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/backend/commands/explain.c,v retrieving revision 1.75 diff -c -r1.75 explain.c *** src/backend/commands/explain.c 2002/03/24 17:11:36 1.75 --- src/backend/commands/explain.c 2002/05/02 17:58:37 *************** *** 324,330 **** { relation = RelationIdGetRelation(lfirsti(l)); Assert(relation); ! appendStringInfo(str, "%s%s", (++i > 1) ? ", " : "", stringStringInfo(RelationGetRelationName(relation))); /* drop relcache refcount from RelationIdGetRelation */ --- 324,330 ---- { relation = RelationIdGetRelation(lfirsti(l)); Assert(relation); ! appendStringInfo(str, "%s'%s'", (++i > 1) ? ", " : "", stringStringInfo(RelationGetRelationName(relation))); /* drop relcache refcount from RelationIdGetRelation */ *************** *** 345,354 **** /* We only show the rel name, not schema name */ relname = get_rel_name(rte->relid); ! appendStringInfo(str, " on %s", stringStringInfo(relname)); if (strcmp(rte->eref->aliasname, relname) != 0) ! appendStringInfo(str, " %s", stringStringInfo(rte->eref->aliasname)); } break; --- 345,354 ---- /* We only show the rel name, not schema name */ relname = get_rel_name(rte->relid); ! appendStringInfo(str, " on '%s'", stringStringInfo(relname)); if (strcmp(rte->eref->aliasname, relname) != 0) ! appendStringInfo(str, " alias '%s'", stringStringInfo(rte->eref->aliasname)); } break; *************** *** 358,364 **** RangeTblEntry *rte = rt_fetch(((Scan *) plan)->scanrelid, es->rtable); ! appendStringInfo(str, " %s", stringStringInfo(rte->eref->aliasname)); } break; --- 358,364 ---- RangeTblEntry *rte = rt_fetch(((Scan *) plan)->scanrelid, es->rtable); ! appendStringInfo(str, " alias '%s'", stringStringInfo(rte->eref->aliasname)); } break;