Remove user-selectable ANALYZE option for range types.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Nov 2011 05:03:22 +0000 (00:03 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Nov 2011 05:03:22 +0000 (00:03 -0500)
commit74c1723fc8dca2d70576ef2f0a66f4a7c99c173a
treea55cb1107a595453641f67d38774550969ed479e
parentdf73584431e7edb1dd76578777bd0fcc17b916a1
Remove user-selectable ANALYZE option for range types.

It's not clear that a per-datatype typanalyze function would be any more
useful than a generic typanalyze for ranges.  What *is* clear is that
letting unprivileged users select typanalyze functions is a crash risk or
worse.  So remove the option from CREATE TYPE AS RANGE, and instead put in
a generic typanalyze function for ranges.  The generic function does
nothing as yet, but hopefully we'll improve that before 9.2 release.
doc/src/sgml/ref/create_type.sgml
src/backend/commands/typecmds.c
src/backend/utils/adt/rangetypes.c
src/bin/pg_dump/pg_dump.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_type.h
src/include/utils/rangetypes.h