diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-04-08 18:49:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-04-08 18:49:52 +0000 |
commit | c6e81aeef39fd546976c5d90e484db0ddb2536e7 (patch) | |
tree | 78746e33bce7278b3061460261a20c2bcad6e3ad /src/include/utils/builtins.h | |
parent | 74bdf965a688301146b174fed5987c764517142f (diff) | |
download | postgresql-c6e81aeef39fd546976c5d90e484db0ddb2536e7.tar.gz |
Fix EXPLAIN so that it can drill down through multiple levels of subplan
when trying to locate the referent of a RECORD variable. This fixes the
'record type has not been registered' failure reported by Stefan
Kaltenbrunner about a month ago. A side effect of the way I chose to
fix it is that most variable references in join conditions will now be
properly labeled with the variable's source table name, instead of the
not-too-helpful 'outer' or 'inner' we used to use.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 47553c5cf2..a46f187bcb 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.278 2006/04/05 22:11:57 tgl Exp $ + * $PostgreSQL: pgsql/src/include/utils/builtins.h,v 1.279 2006/04/08 18:49:52 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -526,9 +526,7 @@ extern List *deparse_context_for(const char *aliasname, Oid relid); extern List *deparse_context_for_plan(int outer_varno, Node *outercontext, int inner_varno, Node *innercontext, List *rtable); -extern Node *deparse_context_for_rte(RangeTblEntry *rte); -extern Node *deparse_context_for_subplan(const char *name, List *tlist, - List *rtable); +extern Node *deparse_context_for_subplan(const char *name, Node *subplan); extern const char *quote_identifier(const char *ident); extern char *quote_qualified_identifier(const char *namespace, const char *ident); |