Improve caching in range type I/O functions.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 04da3232907680caad3445928c97a246c626a14a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-11-15T20:47:51Z
Releases: 9.2.0
Improve caching in range type I/O functions.

Cache the the element type's I/O info across calls, not only the range
type's info.  In passing, also clean up hash_range a bit more.

Files

PathChange+/−
src/backend/utils/adt/rangetypes.c modified +176 −140