mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
First phase of SCHEMA changes, concentrating on fixing the grammar and
the parsetree representation. As yet we don't *do* anything with schema names, just drop 'em on the floor; but you can enter schema-compatible command syntax, and there's even a primitive CREATE SCHEMA command. No doc updates yet, except to note that you can now extract a field from a function-returning-row's result with (foo(...)).fieldname.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.51 2001/12/20 02:39:26 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/print.c,v 1.52 2002/03/21 16:00:41 tgl Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@ -154,10 +154,10 @@ print_rt(List *rtable)
|
||||
|
||||
if (rte->relname)
|
||||
printf("%d\t%s (%s)\t%u",
|
||||
i, rte->relname, rte->eref->relname, rte->relid);
|
||||
i, rte->relname, rte->eref->aliasname, rte->relid);
|
||||
else
|
||||
printf("%d\t[subquery] (%s)\t",
|
||||
i, rte->eref->relname);
|
||||
i, rte->eref->aliasname);
|
||||
printf("\t%s\t%s\n",
|
||||
(rte->inh ? "inh" : ""),
|
||||
(rte->inFromCl ? "inFromCl" : ""));
|
||||
@ -202,7 +202,7 @@ print_expr(Node *expr, List *rtable)
|
||||
Assert(var->varno > 0 &&
|
||||
(int) var->varno <= length(rtable));
|
||||
rte = rt_fetch(var->varno, rtable);
|
||||
relname = rte->eref->relname;
|
||||
relname = rte->eref->aliasname;
|
||||
attname = get_rte_attribute_name(rte, var->varattno);
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user