Commit 62045e67 authored by Bruce Momjian's avatar Bruce Momjian

Emit warning on SELECT pg_language.*

parent 99fb237d
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.55 1999/09/18 19:07:12 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.56 1999/09/27 17:46:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -273,7 +273,10 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
rte = refnameRangeTableEntry(pstate, refname);
if (rte == NULL)
rte = addRangeTableEntry(pstate, refname, refname, FALSE, FALSE);
{
rte = addRangeTableEntry(pstate, refname, refname,FALSE, FALSE);
elog(NOTICE,"Auto-creating query reference to table %s", refname);
}
relname = rte->relname;
relid = rte->relid;
......@@ -429,8 +432,11 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
rte = refnameRangeTableEntry(pstate, refname);
if (rte == NULL)
rte = addRangeTableEntry(pstate, refname, refname,
FALSE, FALSE);
{
rte = addRangeTableEntry(pstate, refname, refname,FALSE, FALSE);
elog(NOTICE,"Auto-creating query reference to table %s", refname);
}
relname = rte->relname;
vnum = refnameRangeTablePosn(pstate, rte->refname, NULL);
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.27 1999/09/18 19:07:12 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.28 1999/09/27 17:46:14 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -239,7 +239,10 @@ expandAll(ParseState *pstate, char *relname, char *refname, int *this_resno)
rte = refnameRangeTableEntry(pstate, refname);
if (rte == NULL)
{
rte = addRangeTableEntry(pstate, relname, refname, FALSE, FALSE);
elog(NOTICE,"Auto-creating query reference to table %s", refname);
}
rel = heap_open(rte->relid, AccessShareLock);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment