Обсуждение: pgsql: Remove user-selectable ANALYZE option for range types.

Поиск
Список
Период
Сортировка

pgsql: Remove user-selectable ANALYZE option for range types.

От
Tom Lane
Дата:
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/74c1723fc8dca2d70576ef2f0a66f4a7c99c173a

Modified Files
--------------
doc/src/sgml/ref/create_type.sgml  |    7 -------
src/backend/commands/typecmds.c    |   18 +-----------------
src/backend/utils/adt/rangetypes.c |   17 +++++++++++++++++
src/bin/pg_dump/pg_dump.c          |   14 +++++---------
src/include/catalog/catversion.h   |    2 +-
src/include/catalog/pg_proc.h      |    3 +++
src/include/catalog/pg_type.h      |   12 ++++++------
src/include/utils/rangetypes.h     |    3 +++
8 files changed, 36 insertions(+), 40 deletions(-)