diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-11-23 00:03:22 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-11-23 00:03:22 -0500 |
| commit | 74c1723fc8dca2d70576ef2f0a66f4a7c99c173a (patch) | |
| tree | a55cb1107a595453641f67d38774550969ed479e /src/include/utils | |
| parent | df73584431e7edb1dd76578777bd0fcc17b916a1 (diff) | |
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.
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/rangetypes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/utils/rangetypes.h b/src/include/utils/rangetypes.h index 17915504f93..c9a6834e6db 100644 --- a/src/include/utils/rangetypes.h +++ b/src/include/utils/rangetypes.h @@ -127,6 +127,9 @@ extern Datum range_gt(PG_FUNCTION_ARGS); /* Hash support */ extern Datum hash_range(PG_FUNCTION_ARGS); +/* ANALYZE support */ +extern Datum range_typanalyze(PG_FUNCTION_ARGS); + /* Canonical functions */ extern Datum int4range_canonical(PG_FUNCTION_ARGS); extern Datum int8range_canonical(PG_FUNCTION_ARGS); |
