Remove user-selectable ANALYZE option for range types.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_type.sgml | modified | +0 −7 |
| src/backend/commands/typecmds.c | modified | +1 −17 |
| src/backend/utils/adt/rangetypes.c | modified | +17 −0 |
| src/bin/pg_dump/pg_dump.c | modified | +5 −9 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.h | modified | +3 −0 |
| src/include/catalog/pg_type.h | modified | +6 −6 |
| src/include/utils/rangetypes.h | modified | +3 −0 |