Refactor Type System
From PostgreSQL wiki
Revision as of 22:11, 12 November 2010 by Dfetter
Refactor the Type System
Creaky typmod system
One 32-bit integer does not contain enough structure to describe conveniently what a type should be. Pushing information into userland, as PostGIS is forced to do, exposes these types to the vicissitudes of user environment, search_path, etc.
Typmod is not preserved over all operations, leading to surprising behavior.
Need to store a separate entry for a type's array and other possible multiplicities