1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

fix_parsetree_attnums was not nearly smart enough about walking parse

trees.  Also rewrite find_all_inheritors() in a more intelligible style.
This commit is contained in:
Tom Lane
1999-12-14 03:35:28 +00:00
parent 549a8ba59a
commit 7431796b46
4 changed files with 156 additions and 137 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.37 1999/11/25 00:15:57 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.38 1999/12/14 03:35:20 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -97,7 +97,7 @@ renameatt(char *relname,
*children;
/* this routine is actually in the planner */
children = find_all_inheritors(lconsi(relid, NIL), NIL);
children = find_all_inheritors(relid);
/*
* find_all_inheritors does the recursive search of the
@ -106,10 +106,9 @@ renameatt(char *relname,
*/
foreach(child, children)
{
Oid childrelid;
Oid childrelid = lfirsti(child);
char childname[NAMEDATALEN];
childrelid = lfirsti(child);
if (childrelid == relid)
continue;
reltup = SearchSysCacheTuple(RELOID,