postgresql/src/backend
Tom Lane 07daff63c5 Fix select_common_type() so that it can select a domain type, if all inputs
to a UNION, CASE, or related construct are of the same domain type.  The
main part of this routine smashes domains to their base types, which seems
necessary because the logic involves TypeCategory() and IsPreferredType(),
neither of which work usefully on domains.  However, we can add a first
pass that just detects whether all the inputs are exactly the same type,
and if so accept that without question (so long as it's not UNKNOWN).
Per recent gripe from Dean Rasheed.

In passing, remove some tests for InvalidOid, which have clearly been dead
code for quite some time now, because getBaseType() would fail on that input.

Also, clarify the manual's not-very-precise description of the existing
algorithm's behavior.
2007-11-26 16:46:51 +00:00
..
access Improve GIN index build's tracking of memory usage by using 2007-11-16 21:55:59 +00:00
bootstrap pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
catalog Fix thinko in comment. 2007-11-25 02:09:46 +00:00
commands Small comment spacing improvement. 2007-11-16 01:51:22 +00:00
executor Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
lib pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
libpq pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
main pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
nodes Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
optimizer Save another little bit of planner overhead on simple queries, by having 2007-11-24 19:08:51 +00:00
parser Fix select_common_type() so that it can select a domain type, if all inputs 2007-11-26 16:46:51 +00:00
po Translation updates 2007-11-15 20:38:15 +00:00
port Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
postmaster Reduce routine successful-archiving message from LOG to DEBUG1 grade, 2007-11-24 21:37:04 +00:00
regex pgindent run for 8.3. 2007-11-15 21:14:46 +00:00
rewrite Small comment spacing improvement. 2007-11-16 01:51:22 +00:00
snowball Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
storage Fix stupid typo in recently-added code :-( 2007-11-16 00:57:55 +00:00
tcop Re-run pgindent with updated list of typedefs. (Updated README should 2007-11-15 22:25:18 +00:00
tsearch Allow for X as well as x to be the prefix for hexadecimal character ref entity numbers, 2007-11-25 19:35:41 +00:00
utils Use double quotes for quoting xml attributes. 2007-11-25 12:08:11 +00:00
Makefile Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
nls.mk Add _ to gettext triggers. Must have been forgotten here when it was introduced. 2005-10-04 11:14:03 +00:00