mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-12 17:37:07 +08:00
large objects. Dump all these in pg_dump; also add code to pg_dump user-defined conversions. Make psql's large object code rely on the backend for inserting/deleting LOB comments, instead of trying to hack pg_description directly. Documentation and regression tests added. Christopher Kings-Lynne, code reviewed by Tom
41 lines
713 B
SQL
41 lines
713 B
SQL
--
|
|
-- CREATE_OPERATOR
|
|
--
|
|
|
|
CREATE OPERATOR ## (
|
|
leftarg = path,
|
|
rightarg = path,
|
|
procedure = path_inter,
|
|
commutator = ##
|
|
);
|
|
|
|
CREATE OPERATOR <% (
|
|
leftarg = point,
|
|
rightarg = widget,
|
|
procedure = pt_in_widget,
|
|
commutator = >% ,
|
|
negator = >=%
|
|
);
|
|
|
|
CREATE OPERATOR @#@ (
|
|
rightarg = int4, -- left unary
|
|
procedure = int4fac
|
|
);
|
|
|
|
CREATE OPERATOR #@# (
|
|
leftarg = int4, -- right unary
|
|
procedure = int4fac
|
|
);
|
|
|
|
CREATE OPERATOR #%# (
|
|
leftarg = int4, -- right unary
|
|
procedure = int4fac
|
|
);
|
|
|
|
-- Test comments
|
|
COMMENT ON OPERATOR ###### (int4, NONE) IS 'bad right unary';
|
|
COMMENT ON OPERATOR #%# (int4, NONE) IS 'right unary';
|
|
COMMENT ON OPERATOR #%# (int4, NONE) IS NULL;
|
|
|
|
|