Filter:

Commits in week 7 (Feb 12 - Feb 18, 2007)

Commits18 commits of which 7 backported
0Author
18Committer
0Reviewer
0Reported by
0Co-author
CreditCommitBranchesThread(s)Committed
CommitterBackportedFix portal management code to support non-default command completion tags for portals using PORTAL_UTIL_SELECT strategy. This is currently significant only for FETCH queries, which are supposed to include a count in the tag. Seems it's been broken since 7.4, but nobody noticed before Knut Lehre.
f1f2b271
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+21 more
No linked threadFeb 18, 2007
CommitterAdd code so that when COPY_PARSE_PLAN_TREES is defined, the copy and equal functions are checked for raw parse trees as well as post-analysis trees. This was never very important before, but the upcoming plan cache control module will need to be able to do copyObject() on raw parse trees.
49451ae0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 17, 2007
CommitterTeach find_nonnullable_rels to handle OR cases: if every arm of an OR forces a particular relation nonnullable, then we can say that the OR does. This is worth a little extra trouble since it may allow reduction of outer joins to plain joins.
72a070a3
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 16, 2007
CommitterFix new RI operator selection code to do the right thing when working with an opclass for a generic type such as ANYARRAY. The original coding failed to check that PK and FK columns were of the same array type. Per discussion with Tom Dunstan. Also, make the code a shade more readable by not trying to economize on variables.
9f28ac0d
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 16, 2007
CommitterBackportedAdjust the definition of is_pushed_down so that it's always true for INNER JOIN quals, just like WHERE quals, even if they reference every one of the join's relations. Now that we can reorder outer and inner joins, it's possible for such a qual to end up being assigned to an outer join plan node, and we mustn't have it treated as a join qual rather than a filter qual for the node. (If it were, the join could produce null-extended rows that it shouldn't.) Per bug report from Pelle Johansson.
8249409b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 16, 2007
CommitterCode review for SSLKEY patch.
b6c9165e
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 16, 2007
CommitterFix markup, spelling, grammar, and explanations for SSLKEY patch.
5ce7599b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 16, 2007
CommitterBackportedFix another problem in 8.2 changes that allowed "one-time" qual conditions to be checked at plan levels below the top; namely, we have to allow for Result nodes inserted just above a nestloop inner indexscan. Should think about using the general Param mechanism to pass down outer-relation variables, but for the moment we need a back-patchable solution. Per report from Phil Frost.
7ea758b0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 16, 2007
CommitterBackportedRestructure code that is responsible for ensuring that clauseless joins are considered when it is necessary to do so because of a join-order restriction (that is, an outer-join or IN-subselect construct). The former coding was a bit ad-hoc and inconsistent, and it missed some cases, as exposed by Mario Weilguni's recent bug report. His specific problem was that an IN could be turned into a "clauseless" join due to constant-propagation removing the IN's joinclause, and if the IN's subselect involved more than one relation and there was more than one such IN linking to the same upper relation, then the only valid join orders involve "bushy" plans but we would fail to consider the specific paths needed to get there. (See the example case added to the join regression test.) On examining the code I wonder if there weren't some other problem cases too; in particular it seems that GEQO was defending against a different set of corner cases than the main planner was. There was also an efficiency problem, in that when we did realize we needed a clauseless join because of an IN, we'd consider clauseless joins against every other relation whether this was sensible or not. It seems a better design is to use the outer-join and in-clause lists as a backup heuristic, just as the rule of joining only where there are joinclauses is a heuristic: we'll join two relations if they have a usable joinclause *or* this might be necessary to satisfy an outer-join or IN-clause join order restriction. I refactored the code to have just one place considering this instead of three, and made sure that it covered all the cases that any of them had been considering.
6bef118b
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadFeb 16, 2007
CommitterAdd ORDER BY to a query on information_schema.views, to avoid possible platform-specific result ordering. Per buildfarm results.
eecbb332
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 15, 2007
CommitterBackportedRepair oversight in 8.2 change that improved the handling of "pseudoconstant" WHERE clauses. createplan.c is now willing to stick a gating Result node almost anywhere in the plan tree, and in particular one can wind up directly underneath a MergeJoin node. This means it had better be willing to handle Mark/Restore. Fortunately, that's trivial in such cases, since we can just pass off the call to the input node (which the planner has previously ensured can handle Mark/Restore). Per report from Phil Frost.
bfe553fb
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 15, 2007
CommitterAdd some discussion of sort ordering to indices.sgml, which curiously had never touched the subject before.
5b68dfb0
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 14, 2007
CommitterMinor editorialization on operator-family documentation: put some copied-and-pasted text in a more useful location.
5c63829f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 14, 2007
CommitterFix up foreign-key mechanism so that there is a sound semantic basis for the equality checks it applies, instead of a random dependence on whatever operators might be named "=". The equality operators will now be selected from the opfamily of the unique index that the FK constraint depends on to enforce uniqueness of the referenced columns; therefore they are certain to be consistent with that index's notion of equality. Among other things this should fix the problem noted awhile back that pg_dump may fail for foreign-key constraints on user-defined types when the required operators aren't in the search path. This also means that the former warning condition about "foreign key constraint will require costly sequential scans" is gone: if the comparison condition isn't indexable then we'll reject the constraint entirely. All per past discussions.
7bddca34
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 14, 2007
CommitterBackportedDisallow committing a prepared transaction unless we are in the same database it was executed in. Someday it might be nice to allow cross-DB commits, but work would be needed in NOTIFY and perhaps other places. Per Heikki.
caf2b64a
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+19 more
No linked threadFeb 13, 2007
CommitterImprove postmaster's behavior if an accept() call fails. Because the server socket is still read-ready, the code was a tight loop, wasting lots of CPU. We can't do anything to clear the failure, other than wait, but we should give other processes more chance to finish and release FDs; so insert a small sleep. Also, avoid bogus "close(-1)" in this case. Per report from Jim Nasby.
cf4cc784
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 13, 2007
CommitterBackportedRepair bug in 8.2's new logic for planning outer joins: we have to allow joins that overlap an outer join's min_righthand but aren't fully contained in it, to support joining within the RHS after having performed an outer join that can commute with this one. Aside from the direct fix in make_join_rel(), fix has_join_restriction() and GEQO's desirable_join() to consider this possibility. Per report from Ian Harding.
c1711764
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+18 more
No linked threadFeb 13, 2007
CommitterAvoid infinite recursion when dumping new planner EquivalenceClass trees.
33c4a77f
master8.3beta1REL_19_STABLE8.3beta1REL_18_STABLE8.3beta1REL_17_STABLE8.3beta1REL_16_STABLE8.3beta1REL_15_STABLE8.3beta1REL_14_STABLE8.3beta1REL_13_STABLE8.3beta1+17 more
No linked threadFeb 12, 2007