diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-11-22 20:45:05 -0500 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-11-22 20:45:05 -0500 |
| commit | df73584431e7edb1dd76578777bd0fcc17b916a1 (patch) | |
| tree | 3fb50fe824636a99d0af48ea153bfb362475c84b /src/include/utils | |
| parent | cddc819e45010492da00164d225a749661f43aef (diff) | |
Remove zero- and one-argument range constructor functions.
Per discussion, the zero-argument forms aren't really worth the catalog
space (just write 'empty' instead). The one-argument forms have some use,
but they also have a serious problem with looking too much like functional
cast notation; to the point where in many real use-cases, the parser would
misinterpret what was wanted.
Committing this as a separate patch, with the thought that we might want
to revert part or all of it if we can think of some way around the cast
ambiguity.
Diffstat (limited to 'src/include/utils')
| -rw-r--r-- | src/include/utils/rangetypes.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/include/utils/rangetypes.h b/src/include/utils/rangetypes.h index f64f7c887e3..17915504f93 100644 --- a/src/include/utils/rangetypes.h +++ b/src/include/utils/rangetypes.h @@ -82,8 +82,6 @@ extern Datum range_recv(PG_FUNCTION_ARGS); extern Datum range_send(PG_FUNCTION_ARGS); /* constructors */ -extern Datum range_constructor0(PG_FUNCTION_ARGS); -extern Datum range_constructor1(PG_FUNCTION_ARGS); extern Datum range_constructor2(PG_FUNCTION_ARGS); extern Datum range_constructor3(PG_FUNCTION_ARGS); @@ -158,7 +156,6 @@ extern int range_cmp_bounds(TypeCacheEntry *typcache, RangeBound *b1, extern int range_cmp_bound_values(TypeCacheEntry *typcache, RangeBound *b1, RangeBound *b2); extern RangeType *make_empty_range(TypeCacheEntry *typcache); -extern RangeType *make_singleton_range(TypeCacheEntry *typcache, Datum val); /* GiST support (in rangetypes_gist.c) */ extern Datum range_gist_consistent(PG_FUNCTION_ARGS); |
