- 16 Aug, 1999 5 commits
- 
- 
Tom Lane authoredstore 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. 
- 
Tom Lane authored
- 
Tom Lane authored
- 
Tom Lane authoredsince it's now needed in both optimizer and parser. 
- 
Tatsuo Ishii authoredPatches created by Hiroki Kataoka. 
 
- 
- 15 Aug, 1999 1 commit
- 
- 
Thomas G. Lockhart authoredAlso, improve it so that it checks for multi-column constraints. Thanks to Mark Dalphin <mdalphin@amgen.com> for reporting the problem. 
 
- 
- 14 Aug, 1999 2 commits
- 13 Aug, 1999 2 commits
- 
- 
Bruce Momjian authored
- 
Tom Lane authored
 
- 
- 12 Aug, 1999 2 commits
- 
- 
Tom Lane authoredcommuted (ie, the index var appears on the right). These are now handled the same way as merge and hash join quals that need to be commuted: the actual reversing of the clause only happens if we actually choose the path and generate a plan from it. Furthermore, the clause is only reversed in the 'indexqual' field of the plan, not in the 'indxqualorig' field. This allows the clause to still be recognized and removed from qpquals of upper level join plans. Also, simplify and generalize match_clause_to_indexkey; now it recognizes binary-compatible indexes for join as well as restriction clauses. 
- 
Tom Lane authoredcontains much code that looks like it will handle indexquals with the index key on either side of the operator, in fact indexquals must have the index key on the left because of limitations of the ScanKey machinery. Perhaps someone will be motivated to fix that someday... 
 
- 
- 10 Aug, 1999 3 commits
- 
- 
Bruce Momjian authored
- 
Tom Lane authoredroutines that are now dead code. 
- 
Tom Lane authoredwork under a wider range of scenarios than it did --- it formerly did not handle a multi-pass inner scan, nor cases in which the inner scan's indxqualorig or non-index qual contained outer var references. I am not sure that these limitations could be hit in the existing optimizer, but they need to be fixed for future expansion. 
 
- 
- 09 Aug, 1999 10 commits
- 
- 
Bruce Momjian authored> > > > was implemented by Jan Wieck. > > His work is for ascending order cases. > > > > Here is a patch to prevent sorting also in descending > > order cases. > > Because I had already changed _bt_first() to position > > backward correctly before v6.5,this patch would work. > > Hiroshi Inoue Inoue@tpf.co.jp 
- 
Tom Lane authoredexpression_tree_mutator. 
- 
Tom Lane authoredCentralize att_disbursion readout logic. 
- 
Tom Lane authored
- 
Tom Lane authored
- 
Vadim B. Mikheev authored
- 
Tom Lane authoredmulti-scan indexscan plans; it tried to use the same table-to-index attribute mapping for all the scans, even if they used different indexes. It would klugily work as long as OR indexquals never used multikey indexes, but that's not likely to hold up much longer... 
- 
Tom Lane authoredwalking logic with expression_tree_walker/mutator calls. 
- 
Tom Lane authoredto go along with expression_tree_walker. (_walker is not suitable for routines that need to alter the tree structure significantly.) Other minor cleanups in clauses.c. 
- 
Bruce Momjian authored
 
- 
- 08 Aug, 1999 8 commits
- 
- 
Tom Lane authoredAlso, move responsibility for calling vc_abort into main xact.c list of things-to-call-at-abort. What in the world was it doing down inside of TransactionIdAbort()? 
- 
Tom Lane authoredwas recording a disbursion of 0, not the correct value 1/numberOfRows. 
- 
Thomas G. Lockhart authored
- 
Thomas G. Lockhart authored
- 
Thomas G. Lockhart authored
- 
Thomas G. Lockhart authored
- 
Thomas G. Lockhart authoredThanks to Garr Updegraff <garru@uci.edu> for the tip. 
- 
Thomas G. Lockhart authoredUse refentry.sgml as a generic header for man pages through nsgmls. 
 
- 
- 07 Aug, 1999 1 commit
- 
- 
Bruce Momjian authored
 
- 
- 06 Aug, 1999 5 commits
- 
- 
Thomas G. Lockhart authoredAdd new pages for programming languages and tcl shells. 
- 
Thomas G. Lockhart authoredchapter is included, not the chapter itself. Thanks to Evelyn Mitchell <efm@tummy.com> for pointing it out. 
- 
Thomas G. Lockhart authoredFix rules for man pages to ensure double-pass to get cross references. Add a few new man pages. 
- 
Thomas G. Lockhart authoredFix source indenting, which does not affect output. Note: still need docs on NUMERIC and DECIMAL (and let's not talk about regression tests :() 
- 
Tom Lane authoredhashjoinable clause, not one path for a randomly-chosen element of each set of clauses with the same join operator. That is, if you wrote SELECT ... WHERE t1.f1 = t2.f2 and t1.f3 = t2.f4, and both '=' ops were the same opcode (say, all four fields are int4), then the system would either consider hashing on f1=f2 or on f3=f4, but it would *not* consider both possibilities. Boo hiss. Also, revise estimation of hashjoin costs to include a penalty when the inner join var has a high disbursion --- ie, the most common value is pretty common. This tends to lead to badly skewed hash bucket occupancy and way more comparisons than you'd expect on average. I imagine that the cost calculation still needs tweaking, but at least it generates a more reasonable plan than before on George Young's example. 
 
- 
- 05 Aug, 1999 1 commit
- 
- 
Tom Lane authoredconstant-coercion expression in the rules test. 
 
-