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

Fix aggregates on inherited tables.

This commit is contained in:
Bruce Momjian
1997-12-20 07:59:44 +00:00
parent 1783963cab
commit 7fd4782504
6 changed files with 193 additions and 99 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: planmain.h,v 1.8 1997/12/18 12:54:41 momjian Exp $
* $Id: planmain.h,v 1.9 1997/12/20 07:59:43 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -57,6 +57,7 @@ extern List *index_outerjoin_references(List *inner_indxqual,
extern void set_result_tlist_references(Result *resultNode);
extern void set_agg_tlist_references(Agg *aggNode);
extern void set_agg_agglist_references(Agg *aggNode);
extern void del_agg_tlist_references(List *tlist);
#endif /* PLANMAIN_H */

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: prep.h,v 1.8 1997/12/18 12:54:45 momjian Exp $
* $Id: prep.h,v 1.9 1997/12/20 07:59:44 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -24,8 +24,7 @@ extern List *cnfify(Expr *qual, bool removeAndFlag);
/*
* prototypes for preptlist.h
*/
extern List *
preprocess_targetlist(List *tlist, int command_type,
extern List *preprocess_targetlist(List *tlist, int command_type,
Index result_relation, List *range_table);
/*
@@ -36,12 +35,10 @@ typedef enum UnionFlag
INHERITS_FLAG, VERSION_FLAG
} UnionFlag;
extern List *
find_all_inheritors(List *unexamined_relids,
extern List *find_all_inheritors(List *unexamined_relids,
List *examined_relids);
extern int first_matching_rt_entry(List *rangetable, UnionFlag flag);
extern Append *
plan_union_queries(Index rt_index, Query *parse,
extern Append *plan_union_queries(Index rt_index, Query *parse,
UnionFlag flag);
#endif /* PREP_H */