Bruce Momjian
4b2c2850bf
Clean up #include in /include directory. Add scripts for checking includes.
1999-07-15 15:21:54 +00:00
Bruce Momjian
fcff1cdf4e
Another pgindent run. Sorry folks.
1999-05-25 22:43:53 +00:00
Bruce Momjian
07842084fe
pgindent run over code.
1999-05-25 16:15:34 +00:00
Tom Lane
353d36f979
Remove no-longer-used fields in Hash and HashJoin nodes.
1999-05-18 21:34:29 +00:00
Bruce Momjian
4853495e03
Change error messages to oids come out as %u and not %d. Change has no
...
real affect now.
1999-05-10 00:46:32 +00:00
Tom Lane
5729c3503d
fix_indxqual_references didn't cope with ArrayRef nodes,
...
meaning that this failed:
select proname,typname,prosrc from pg_proc,pg_type
where proname = 'float8' and pg_proc.proargtypes[0] = pg_type.oid;
1999-05-06 01:30:58 +00:00
Tom Lane
605d84941d
Clean up cost_sort some more: most callers were double-counting
...
the cost of reading the source data.
1999-05-01 19:47:42 +00:00
Tom Lane
17dbeebb5f
Fill in reasonable-looking cost estimates in inserted nodes.
...
This makes no difference to the optimizer, which has already decided what
it's gonna do, but it makes the output of EXPLAIN much more plausible.
1999-04-30 04:04:27 +00:00
Tom Lane
b204d10c79
Executor no longer cares about mergejoinop, mergerightorder, mergeleftorder,
...
so remove them from MergeJoin node. Hack together a partial
solution for commuted mergejoin operators --- yesterday
a mergejoin int4 = int8 would crash if the planner decided to
commute it, today it works. The planner's representation of
mergejoins really needs a rewrite though.
Also, further testing of mergejoin ops in opr_sanity regress test.
1999-03-01 00:10:44 +00:00
Marc G. Fournier
8c3e8a8a0e
From: Tatsuo Ishii <t-ishii@sra.co.jp>
...
Ok. I made patches replacing all of "#if FALSE" or "#if 0" to "#ifdef
NOT_USED" for current. I have tested these patches in that the
postgres binaries are identical.
1999-02-21 03:49:55 +00:00
Tom Lane
944d3c395e
Replace non-idiomatic nconc(x, lcons(y, NIL)) with lappend(x, y).
1999-02-15 02:04:58 +00:00
Tom Lane
dec354ca97
Fix a number of places that made faulty assumptions about
...
what is_opclause will accept.
1999-02-15 01:06:59 +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
ad4b27ac3f
Optimizer cleanup.
1999-02-12 17:25:05 +00:00
Bruce Momjian
c0d17c7aee
JoinPath -> NestPath for nested loop.
1999-02-12 06:43:53 +00:00
Bruce Momjian
d244df95db
More optimizer speedups.
1999-02-11 14:59:09 +00:00
Bruce Momjian
d5a785cd5a
Update find_typedefs for bsdi 4.0.
1999-02-10 17:14:32 +00:00
Bruce Momjian
f859c81c18
Rename Path.keys to Path.pathkeys. Too many 'keys' used for other things.
1999-02-10 03:52:54 +00:00
Bruce Momjian
318e593f03
Rename Temp to Noname for noname tables.
1999-02-09 17:03:14 +00:00
Bruce Momjian
fe35ffe7e0
Major optimizer improvement for joining a large number of tables.
1999-02-09 03:51:42 +00:00
Bruce Momjian
54e5d25666
Optimizer cleanup.
1999-02-08 04:29:25 +00:00
Bruce Momjian
6e2edaf4b8
Optimizer cleanup.
1999-02-05 19:59:31 +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
8d9237d485
Optimizer rename ClauseInfo -> RestrictInfo. Update optimizer README.
1999-02-03 20:15:53 +00:00
Thomas G. Lockhart
bedd04a551
Implement CASE expression.
1998-12-04 15:34:49 +00:00
Vadim B. Mikheev
34680930d5
Fix using indices in OR.
...
EXPLAIN all indices used.
1998-11-22 10:48:45 +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
d9be0ff432
MergeSort was sometimes called mergejoin and was confusing. Now
...
it is now only mergejoin.
1998-08-04 16:44:31 +00:00
Bruce Momjian
584f9438ca
Rename Rel to RelOptInfo.
1998-07-18 04:22:52 +00:00
Bruce Momjian
6bd323c6b3
Remove un-needed braces around single statements.
1998-06-15 19:30:31 +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
4a6e3a6a9f
Old planner() becomes union_planner(); new planner() makes initialization
...
of some global variables to support subselects and calls union_planner().
Calls to SS_replace_correlation_vars() and SS_process_sublinks() in
query_planner() before planning.
Get rid of #ifdef INDEXSCAN_PATCH in createplan.c.
1998-02-13 03:37:04 +00:00
Bruce Momjian
2c482cdbf2
Pass attypmod through to executor by adding to Var and Resdom.
1998-02-10 04:02:59 +00:00
Bruce Momjian
7f31669bea
Add Var.varlevelup to code. More parser cleanup.
1998-01-20 22:12:17 +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
679d39b9c8
Goodbye ABORT. Hello ERROR for all errors.
1998-01-07 21:07:04 +00:00
Bruce Momjian
0d9fc5afd6
Change elog(WARN) to elog(ERROR) and elog(ABORT).
1998-01-05 03:35:55 +00:00
Bruce Momjian
6a45941f2f
Remove Existential, and ifdef out generate_fjoin. Neither did anything.
1997-12-18 12:54:45 +00:00
Bruce Momjian
4469eb63a3
Cost cleanup.
1997-12-18 12:30:44 +00:00
Bruce Momjian
d3f0e87d17
Cost cleanup.
1997-12-18 12:21:02 +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
59f6a57e59
Used modified version of indent that understands over 100 typedefs.
1997-09-08 21:56:23 +00:00
Bruce Momjian
075cede748
Add typdefs to pgindent run.
1997-09-08 20:59:27 +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
Vadim B. Mikheev
e349eb6e2c
Bug (yet unfixed but not fatal) found: Re-moving index clauses from the
...
nestloop's join clauses doesn't work in some cases:
* 1. fix_indxqual_references may change varattno-s in
* inner_indxqual;
* 2. clauses may be commuted
1997-04-24 15:59:58 +00:00
Vadim B. Mikheev
051b4210e3
Fix for Hash and arrays
1997-04-22 03:32:38 +00:00
Marc G. Fournier
d146305065
Patches for Vadim's multikey indexing...
1997-03-18 18:41:37 +00:00