On Tue, Dec 17, 2013 at 11:10 AM, <bneumeier@gmail.com> wrote:
> Bug reference: 8684
>
> (This error is being emitted from range_get_typcache because the result of
> lookup_type_cache(rngtypid, TYPECACHE_RANGE_INFO) has a rngelemtype of
> NULL,
> but I haven't tried to figure out why that is or what it should be
> instead.)
>
The problem appears to be that domains based on a range type are found by
the histogram-construction code, but have no range type information within
them; the range info is in the base type for the domain instead.
Perhaps this function should detect domain types and iteratively climb up
the base-type hierarchy until it finds the actual range type?
I would be happy to attempt such a thing and see if it helps, but have very
little familiarity with the postgresql codebase. Is there a document
somewhere that describes type lookup functions?
--
Brett Neumeier (bneumeier@gmail.com)