postgresql/src/backend/optimizer/path
Tom Lane 31edbadf4a Downgrade implicit casts to text to be assignment-only, except for the ones
from the other string-category types; this eliminates a lot of surprising
interpretations that the parser could formerly make when there was no directly
applicable operator.

Create a general mechanism that supports casts to and from the standard string
types (text,varchar,bpchar) for *every* datatype, by invoking the datatype's
I/O functions.  These new casts are assignment-only in the to-string direction,
explicit-only in the other, and therefore should create no surprising behavior.
Remove a bunch of thereby-obsoleted datatype-specific casting functions.

The "general mechanism" is a new expression node type CoerceViaIO that can
actually convert between *any* two datatypes if their external text
representations are compatible.  This is more general than needed for the
immediate feature, but might be useful in plpgsql or other places in future.

This commit does nothing about the issue that applying the concatenation
operator || to non-text types will now fail, often with strange error messages
due to misinterpreting the operator as array concatenation.  Since it often
(not always) worked before, we should either make it succeed or at least give
a more user-friendly error; but details are still under debate.

Peter Eisentraut and Tom Lane
2007-06-05 21:31:09 +00:00
..
Makefile Refactor planner's pathkeys data structure to create a separate, explicit 2007-01-20 20:45:41 +00:00
allpaths.c Repair two constraint-exclusion corner cases triggered by proving that an 2007-05-26 18:23:02 +00:00
clausesel.c Some further performance tweaks for planning large inheritance trees that 2007-04-21 21:01:45 +00:00
costsize.c Downgrade implicit casts to text to be assignment-only, except for the ones 2007-06-05 21:31:09 +00:00
equivclass.c Put back planner's ability to cache the results of mergejoinscansel(), 2007-01-22 20:00:40 +00:00
indxpath.c Fix best_inner_indexscan to return both the cheapest-total-cost and 2007-05-22 01:40:33 +00:00
joinpath.c Fix best_inner_indexscan to return both the cheapest-total-cost and 2007-05-22 01:40:33 +00:00
joinrels.c Restructure code that is responsible for ensuring that clauseless joins are 2007-02-16 00:14:01 +00:00
orindxpath.c Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
pathkeys.c Change build_index_pathkeys() so that the expressions it builds to represent 2007-05-31 16:57:34 +00:00
tidpath.c Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00