Tom Lane
7431796b46
fix_parsetree_attnums was not nearly smart enough about walking parse
...
trees. Also rewrite find_all_inheritors() in a more intelligible style.
1999-12-14 03:35:28 +00:00
Tom Lane
db436adf76
Major revision of sort-node handling: push knowledge of query
...
sort order down into planner, instead of handling it only at the very top
level of the planner. This fixes many things. An explicit sort is now
avoided if there is a cheaper alternative (typically an indexscan) not
only for ORDER BY, but also for the internal sort of GROUP BY. It works
even when there is no other reason (such as a WHERE condition) to consider
the indexscan. It works for indexes on functions. It works for indexes
on functions, backwards. It's just so cool...
CAUTION: I have changed the representation of SortClause nodes, therefore
THIS UPDATE BREAKS STORED RULES. You will need to initdb.
1999-08-21 03:49:17 +00:00
Tom Lane
e6381966c1
Major planner/optimizer revision: get rid of PathOrder node type,
...
store all ordering information in pathkeys lists (which are now lists of
lists of PathKeyItem nodes, not just lists of lists of vars). This was
a big win --- the code is smaller and IMHO more understandable than it
was, even though it handles more cases. I believe the node changes will
not force an initdb for anyone; planner nodes don't show up in stored
rules.
1999-08-16 02:17:58 +00:00
Bruce Momjian
3406901a29
Move some system includes into c.h, and remove duplicates.
1999-07-17 20:18:55 +00:00
Bruce Momjian
a71802e12e
Final cleanup.
1999-07-16 05:00:38 +00:00
Bruce Momjian
2e6b1e63a3
Remove unused #includes in *.c files.
1999-07-15 22:40:16 +00:00
Bruce Momjian
4b2c2850bf
Clean up #include in /include directory. Add scripts for checking includes.
1999-07-15 15:21:54 +00:00
Tom Lane
c37ecaf8d5
Fix errors in SELECT ... GROUP BY ... UNION SELECT ...
...
ye proverbial one-line patch (not counting five lines of comment so's
maybe it won't happen again)
1999-06-10 06:55:40 +00:00
Tom Lane
b4210ae0f0
Fix problems with grouping/aggregation in queries that use
...
inheritance ... basically it was completely busted :-(
1999-06-06 17:38:11 +00:00
Bruce Momjian
07842084fe
pgindent run over code.
1999-05-25 16:15:34 +00:00
Bruce Momjian
31cce21fb0
Fix bushy plans. Cleanup.
1999-02-18 00:49:48 +00:00
Bruce Momjian
6724a50787
Change my-function-name-- to my_function_name, and optimizer renames.
1999-02-13 23:22:53 +00:00
Bruce Momjian
9322950aa4
Cleanup of source files where 'return' or 'var =' is alone on a line.
1999-02-03 21:18:02 +00:00
Bruce Momjian
fa1a8d6a97
OK, folks, here is the pgindent output.
1998-09-01 04:40:42 +00:00
Bruce Momjian
af74855a60
Renaming cleanup, no pgindent yet.
1998-09-01 03:29:17 +00:00
Bruce Momjian
9e964f90fb
Fix explain for union and inheritance. Rename Append structure
...
members to be clearer. Fix cost computation for these.
1998-07-15 14:54:39 +00:00
Bruce Momjian
6bd323c6b3
Remove un-needed braces around single statements.
1998-06-15 19:30:31 +00:00
Bruce Momjian
8dc48ba877
Small HAVING cleanup.
1998-03-31 23:31:10 +00:00
Bruce Momjian
d7050cb68c
Merge rename name page into alter table. Fix UNION with DISTINCT
...
or ORDER BY bug.
1998-03-31 04:44:35 +00:00
Bruce Momjian
01ecb2e3a0
documentation for HAVING, clean up UNION comment.
1998-03-30 19:05:10 +00:00
Bruce Momjian
a32450a585
pgindent run before 6.3 release, with Thomas' requested changes.
1998-02-26 04:46:47 +00:00
Vadim B. Mikheev
9184073324
Call union_planner() instead of planner().
1998-02-13 03:39:26 +00:00
Bruce Momjian
763ff8aef8
Remove Query->qry_aggs and qry_numaggs and replace with Query->hasAggs.
...
Pass List* of Aggregs into executor, and create needed array there.
No longer need to double-processs Aggregs with second copy in Query.
Fix crash when doing:
select sum(x+1) from test where 1 > 0;
1998-01-15 19:00:16 +00:00
Bruce Momjian
a1dd409053
Fix for ORDER BY in UNION.
1997-12-29 04:31:50 +00:00
Bruce Momjian
a01b085c78
Cleanup of UNION ALL fix. Manual page updates.
1997-12-29 01:13:37 +00:00
Bruce Momjian
4ce24c8aa9
UNION work for UNION ALL and other union stuff.
1997-12-27 06:41:41 +00:00
Vadim B. Mikheev
d8949adc20
Cleaning GCC warnings.
1997-12-26 06:02:26 +00:00
Bruce Momjian
6231e161c9
Implementation of UNIONs.
1997-12-24 06:06:58 +00:00
Bruce Momjian
78a055a659
Remove some recursion in optimizer and clean up some code there.
1997-12-21 05:18:48 +00:00
Bruce Momjian
7fd4782504
Fix aggregates on inherited tables.
1997-12-20 07:59:44 +00:00
Bruce Momjian
c64cc3228a
Fix Query handling for inheritance, and cost computations.
1997-12-18 03:03:41 +00:00
Bruce Momjian
4a5b781d71
Break parser functions into smaller files, group together.
1997-11-25 22:07:18 +00:00
Bruce Momjian
3fa2bb316c
Remove archive stuff.
1997-11-21 18:12:58 +00:00
Bruce Momjian
e9e1ff226f
Remove all time travel stuff. Small parser cleanup.
1997-11-20 23:24:03 +00:00
Bruce Momjian
59f6a57e59
Used modified version of indent that understands over 100 typedefs.
1997-09-08 21:56:23 +00:00
Bruce Momjian
319dbfa736
Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting.
1997-09-08 02:41:22 +00:00
Bruce Momjian
1ccd423235
Massive commit to run PGINDENT on all *.c and *.h files.
1997-09-07 05:04:48 +00:00
Bruce Momjian
a5dd06f763
include sem.h added, include string.h neede, from Erik Bertelsen for Ultrix
1997-01-10 20:19:49 +00:00
Marc G. Fournier
76294e1d38
Cleanup Makefiles
...
Add #include "postgres.h"
and
#include <sys/types.h>
1996-10-31 10:59:42 +00:00
Marc G. Fournier
d31084e9d1
Postgres95 1.01 Distribution - Virgin Sources
1996-07-09 06:22:35 +00:00