From 0ada559187d167fceb0ce438f332fd50852d0c13 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 12 May 2009 00:56:05 +0000 Subject: Do some minor code refactoring in preparation for changing the APIs of find_inheritance_children() and find_all_inheritors(). I got annoyed that these are buried inside the planner but mostly used elsewhere. So, create a new file catalog/pg_inherits.c and put them there, along with a couple of other functions that search pg_inherits. The code that modifies pg_inherits is (still) in tablecmds.c --- it's kind of entangled with unrelated code that modifies pg_depend and other stuff, so pulling it out seemed like a bigger change than I wanted to make right now. But this file provides a natural home for it if anyone ever gets around to that. This commit just moves code around; it doesn't change anything, except I succumbed to the temptation to make a couple of trivial optimizations in typeInheritsFrom(). --- src/include/parser/parse_func.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/include/parser/parse_func.h') diff --git a/src/include/parser/parse_func.h b/src/include/parser/parse_func.h index 710d703e0d5..7905f96e86c 100644 --- a/src/include/parser/parse_func.h +++ b/src/include/parser/parse_func.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/parser/parse_func.h,v 1.64 2009/01/01 17:24:00 momjian Exp $ + * $PostgreSQL: pgsql/src/include/parser/parse_func.h,v 1.65 2009/05/12 00:56:05 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -63,8 +63,6 @@ extern FuncCandidateList func_select_candidate(int nargs, Oid *input_typeids, FuncCandidateList candidates); -extern bool typeInheritsFrom(Oid subclassTypeId, Oid superclassTypeId); - extern void make_fn_arguments(ParseState *pstate, List *fargs, Oid *actual_arg_types, -- cgit v1.2.3