mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
31edbadf4a
from the other string-category types; this eliminates a lot of surprising interpretations that the parser could formerly make when there was no directly applicable operator. Create a general mechanism that supports casts to and from the standard string types (text,varchar,bpchar) for *every* datatype, by invoking the datatype's I/O functions. These new casts are assignment-only in the to-string direction, explicit-only in the other, and therefore should create no surprising behavior. Remove a bunch of thereby-obsoleted datatype-specific casting functions. The "general mechanism" is a new expression node type CoerceViaIO that can actually convert between *any* two datatypes if their external text representations are compatible. This is more general than needed for the immediate feature, but might be useful in plpgsql or other places in future. This commit does nothing about the issue that applying the concatenation operator || to non-text types will now fail, often with strange error messages due to misinterpreting the operator as array concatenation. Since it often (not always) worked before, we should either make it succeed or at least give a more user-friendly error; but details are still under debate. Peter Eisentraut and Tom Lane
96 lines
1.8 KiB
SQL
96 lines
1.8 KiB
SQL
SET search_path = public;
|
|
|
|
DROP OPERATOR CLASS gist_cube_ops USING gist;
|
|
|
|
DROP OPERATOR CLASS cube_ops USING btree;
|
|
|
|
DROP FUNCTION g_cube_same(cube, cube, internal);
|
|
|
|
DROP FUNCTION g_cube_union(internal, internal);
|
|
|
|
DROP FUNCTION g_cube_picksplit(internal, internal);
|
|
|
|
DROP FUNCTION g_cube_penalty(internal,internal,internal);
|
|
|
|
DROP FUNCTION g_cube_decompress(internal);
|
|
|
|
DROP FUNCTION g_cube_compress(internal);
|
|
|
|
DROP FUNCTION g_cube_consistent(internal,cube,int4);
|
|
|
|
DROP OPERATOR ~ (cube, cube);
|
|
|
|
DROP OPERATOR @ (cube, cube);
|
|
|
|
DROP OPERATOR <@ (cube, cube);
|
|
|
|
DROP OPERATOR @> (cube, cube);
|
|
|
|
DROP OPERATOR <> (cube, cube);
|
|
|
|
DROP OPERATOR = (cube, cube);
|
|
|
|
DROP OPERATOR && (cube, cube);
|
|
|
|
DROP OPERATOR >= (cube, cube);
|
|
|
|
DROP OPERATOR <= (cube, cube);
|
|
|
|
DROP OPERATOR > (cube, cube);
|
|
|
|
DROP OPERATOR < (cube, cube);
|
|
|
|
DROP FUNCTION cube_enlarge(cube, float8, int4);
|
|
|
|
DROP FUNCTION cube_is_point(cube);
|
|
|
|
DROP FUNCTION cube(cube, float8, float8);
|
|
|
|
DROP FUNCTION cube(cube, float8);
|
|
|
|
DROP FUNCTION cube(float8, float8);
|
|
|
|
DROP FUNCTION cube(float8[], float8[]);
|
|
|
|
DROP FUNCTION cube(float8[]);
|
|
|
|
DROP FUNCTION cube_subset(cube, int4[]);
|
|
|
|
DROP FUNCTION cube(float8);
|
|
|
|
DROP FUNCTION cube_ur_coord(cube, int4);
|
|
|
|
DROP FUNCTION cube_ll_coord(cube, int4);
|
|
|
|
DROP FUNCTION cube_dim(cube);
|
|
|
|
DROP FUNCTION cube_distance(cube, cube);
|
|
|
|
DROP FUNCTION cube_size(cube);
|
|
|
|
DROP FUNCTION cube_inter(cube, cube);
|
|
|
|
DROP FUNCTION cube_union(cube, cube);
|
|
|
|
DROP FUNCTION cube_overlap(cube, cube);
|
|
|
|
DROP FUNCTION cube_contained(cube, cube);
|
|
|
|
DROP FUNCTION cube_contains(cube, cube);
|
|
|
|
DROP FUNCTION cube_cmp(cube, cube);
|
|
|
|
DROP FUNCTION cube_ge(cube, cube);
|
|
|
|
DROP FUNCTION cube_le(cube, cube);
|
|
|
|
DROP FUNCTION cube_gt(cube, cube);
|
|
|
|
DROP FUNCTION cube_lt(cube, cube);
|
|
|
|
DROP FUNCTION cube_ne(cube, cube);
|
|
|
|
DROP FUNCTION cube_eq(cube, cube);
|
|
|
|
DROP TYPE cube CASCADE;
|