Remove zero- and one-argument range constructor functions.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/rangetypes.sgml | modified | +6 −14 |
| src/backend/commands/typecmds.c | modified | +2 −4 |
| src/backend/utils/adt/rangetypes.c | modified | +0 −58 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.h | modified | +0 −24 |
| src/include/utils/rangetypes.h | modified | +0 −3 |
| src/test/regress/expected/rangetypes.out | modified | +8 −8 |
| src/test/regress/sql/rangetypes.sql | modified | +7 −7 |