Commit 2822c7c0 authored by Tom Lane's avatar Tom Lane

Make contrib/isn pass the opr_sanity sanity checks: add missing

commutator operators, and mark hash-opclass members as oprcanhash.
This is a pretty ugly, brute-force solution, but it seems that getting
rid of all these redundant-looking operators would require some tweaks
in the core operator-resolution code to behave nicely, and I'm not
willing to risk that just before RC1.
parent 2c82df2a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
-- PostgreSQL code for ISNs (ISBN, ISMN, ISSN, EAN13, UPC) -- PostgreSQL code for ISNs (ISBN, ISMN, ISSN, EAN13, UPC)
-- Copyright (c) 2004-2006, German Mendez Bravo (Kronuz) -- Copyright (c) 2004-2006, German Mendez Bravo (Kronuz)
-- --
-- $PostgreSQL: pgsql/contrib/isn/isn.sql.in,v 1.3 2006/10/01 18:37:53 tgl Exp $ -- $PostgreSQL: pgsql/contrib/isn/isn.sql.in,v 1.4 2006/11/24 18:44:37 tgl Exp $
-- --
-- Example: -- Example:
-- create table test ( id isbn ); -- create table test ( id isbn );
...@@ -500,6 +500,37 @@ CREATE FUNCTION isnne(isbn13, isbn) ...@@ -500,6 +500,37 @@ CREATE FUNCTION isnne(isbn13, isbn)
LANGUAGE 'internal' LANGUAGE 'internal'
IMMUTABLE STRICT; IMMUTABLE STRICT;
CREATE FUNCTION isnlt(isbn13, ean13)
RETURNS boolean
AS 'int8lt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnle(isbn13, ean13)
RETURNS boolean
AS 'int8le'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isneq(isbn13, ean13)
RETURNS boolean
AS 'int8eq'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnge(isbn13, ean13)
RETURNS boolean
AS 'int8ge'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isngt(isbn13, ean13)
RETURNS boolean
AS 'int8gt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnne(isbn13, ean13)
RETURNS boolean
AS 'int8ne'
LANGUAGE 'internal'
IMMUTABLE STRICT;
--------------------------------------------------- ---------------------------------------------------
-- ISBN: -- ISBN:
CREATE FUNCTION isnlt(isbn, isbn) CREATE FUNCTION isnlt(isbn, isbn)
...@@ -533,6 +564,68 @@ CREATE FUNCTION isnne(isbn, isbn) ...@@ -533,6 +564,68 @@ CREATE FUNCTION isnne(isbn, isbn)
LANGUAGE 'internal' LANGUAGE 'internal'
IMMUTABLE STRICT; IMMUTABLE STRICT;
CREATE FUNCTION isnlt(isbn, isbn13)
RETURNS boolean
AS 'int8lt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnle(isbn, isbn13)
RETURNS boolean
AS 'int8le'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isneq(isbn, isbn13)
RETURNS boolean
AS 'int8eq'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnge(isbn, isbn13)
RETURNS boolean
AS 'int8ge'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isngt(isbn, isbn13)
RETURNS boolean
AS 'int8gt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnne(isbn, isbn13)
RETURNS boolean
AS 'int8ne'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnlt(isbn, ean13)
RETURNS boolean
AS 'int8lt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnle(isbn, ean13)
RETURNS boolean
AS 'int8le'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isneq(isbn, ean13)
RETURNS boolean
AS 'int8eq'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnge(isbn, ean13)
RETURNS boolean
AS 'int8ge'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isngt(isbn, ean13)
RETURNS boolean
AS 'int8gt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnne(isbn, ean13)
RETURNS boolean
AS 'int8ne'
LANGUAGE 'internal'
IMMUTABLE STRICT;
--------------------------------------------------- ---------------------------------------------------
-- ISMN13: -- ISMN13:
CREATE FUNCTION isnlt(ismn13, ismn13) CREATE FUNCTION isnlt(ismn13, ismn13)
...@@ -597,6 +690,37 @@ CREATE FUNCTION isnne(ismn13, ismn) ...@@ -597,6 +690,37 @@ CREATE FUNCTION isnne(ismn13, ismn)
LANGUAGE 'internal' LANGUAGE 'internal'
IMMUTABLE STRICT; IMMUTABLE STRICT;
CREATE FUNCTION isnlt(ismn13, ean13)
RETURNS boolean
AS 'int8lt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnle(ismn13, ean13)
RETURNS boolean
AS 'int8le'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isneq(ismn13, ean13)
RETURNS boolean
AS 'int8eq'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnge(ismn13, ean13)
RETURNS boolean
AS 'int8ge'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isngt(ismn13, ean13)
RETURNS boolean
AS 'int8gt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnne(ismn13, ean13)
RETURNS boolean
AS 'int8ne'
LANGUAGE 'internal'
IMMUTABLE STRICT;
--------------------------------------------------- ---------------------------------------------------
-- ISMN: -- ISMN:
CREATE FUNCTION isnlt(ismn, ismn) CREATE FUNCTION isnlt(ismn, ismn)
...@@ -630,6 +754,68 @@ CREATE FUNCTION isnne(ismn, ismn) ...@@ -630,6 +754,68 @@ CREATE FUNCTION isnne(ismn, ismn)
LANGUAGE 'internal' LANGUAGE 'internal'
IMMUTABLE STRICT; IMMUTABLE STRICT;
CREATE FUNCTION isnlt(ismn, ismn13)
RETURNS boolean
AS 'int8lt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnle(ismn, ismn13)
RETURNS boolean
AS 'int8le'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isneq(ismn, ismn13)
RETURNS boolean
AS 'int8eq'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnge(ismn, ismn13)
RETURNS boolean
AS 'int8ge'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isngt(ismn, ismn13)
RETURNS boolean
AS 'int8gt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnne(ismn, ismn13)
RETURNS boolean
AS 'int8ne'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnlt(ismn, ean13)
RETURNS boolean
AS 'int8lt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnle(ismn, ean13)
RETURNS boolean
AS 'int8le'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isneq(ismn, ean13)
RETURNS boolean
AS 'int8eq'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnge(ismn, ean13)
RETURNS boolean
AS 'int8ge'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isngt(ismn, ean13)
RETURNS boolean
AS 'int8gt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnne(ismn, ean13)
RETURNS boolean
AS 'int8ne'
LANGUAGE 'internal'
IMMUTABLE STRICT;
--------------------------------------------------- ---------------------------------------------------
-- ISSN13: -- ISSN13:
CREATE FUNCTION isnlt(issn13, issn13) CREATE FUNCTION isnlt(issn13, issn13)
...@@ -694,6 +880,37 @@ CREATE FUNCTION isnne(issn13, issn) ...@@ -694,6 +880,37 @@ CREATE FUNCTION isnne(issn13, issn)
LANGUAGE 'internal' LANGUAGE 'internal'
IMMUTABLE STRICT; IMMUTABLE STRICT;
CREATE FUNCTION isnlt(issn13, ean13)
RETURNS boolean
AS 'int8lt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnle(issn13, ean13)
RETURNS boolean
AS 'int8le'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isneq(issn13, ean13)
RETURNS boolean
AS 'int8eq'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnge(issn13, ean13)
RETURNS boolean
AS 'int8ge'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isngt(issn13, ean13)
RETURNS boolean
AS 'int8gt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnne(issn13, ean13)
RETURNS boolean
AS 'int8ne'
LANGUAGE 'internal'
IMMUTABLE STRICT;
--------------------------------------------------- ---------------------------------------------------
-- ISSN: -- ISSN:
CREATE FUNCTION isnlt(issn, issn) CREATE FUNCTION isnlt(issn, issn)
...@@ -727,6 +944,68 @@ CREATE FUNCTION isnne(issn, issn) ...@@ -727,6 +944,68 @@ CREATE FUNCTION isnne(issn, issn)
LANGUAGE 'internal' LANGUAGE 'internal'
IMMUTABLE STRICT; IMMUTABLE STRICT;
CREATE FUNCTION isnlt(issn, issn13)
RETURNS boolean
AS 'int8lt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnle(issn, issn13)
RETURNS boolean
AS 'int8le'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isneq(issn, issn13)
RETURNS boolean
AS 'int8eq'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnge(issn, issn13)
RETURNS boolean
AS 'int8ge'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isngt(issn, issn13)
RETURNS boolean
AS 'int8gt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnne(issn, issn13)
RETURNS boolean
AS 'int8ne'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnlt(issn, ean13)
RETURNS boolean
AS 'int8lt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnle(issn, ean13)
RETURNS boolean
AS 'int8le'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isneq(issn, ean13)
RETURNS boolean
AS 'int8eq'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnge(issn, ean13)
RETURNS boolean
AS 'int8ge'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isngt(issn, ean13)
RETURNS boolean
AS 'int8gt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnne(issn, ean13)
RETURNS boolean
AS 'int8ne'
LANGUAGE 'internal'
IMMUTABLE STRICT;
--------------------------------------------------- ---------------------------------------------------
-- UPC: -- UPC:
CREATE FUNCTION isnlt(upc, upc) CREATE FUNCTION isnlt(upc, upc)
...@@ -760,11 +1039,39 @@ CREATE FUNCTION isnne(upc, upc) ...@@ -760,11 +1039,39 @@ CREATE FUNCTION isnne(upc, upc)
LANGUAGE 'internal' LANGUAGE 'internal'
IMMUTABLE STRICT; IMMUTABLE STRICT;
CREATE FUNCTION isnlt(upc, ean13)
RETURNS boolean
AS 'int8lt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnle(upc, ean13)
RETURNS boolean
AS 'int8le'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isneq(upc, ean13)
RETURNS boolean
AS 'int8eq'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnge(upc, ean13)
RETURNS boolean
AS 'int8ge'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isngt(upc, ean13)
RETURNS boolean
AS 'int8gt'
LANGUAGE 'internal'
IMMUTABLE STRICT;
CREATE FUNCTION isnne(upc, ean13)
RETURNS boolean
AS 'int8ne'
LANGUAGE 'internal'
IMMUTABLE STRICT;
-- --
-- Now the operators. Note how some of the parameters to some -- Now the operators:
-- of the 'CREATE OPERATOR' commands are commented out. This
-- is because they reference as yet undefined operators, and
-- will be implicitly defined when those are, further down.
-- --
-- --
...@@ -794,7 +1101,8 @@ CREATE OPERATOR = ( ...@@ -794,7 +1101,8 @@ CREATE OPERATOR = (
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
RESTRICT = eqsel, RESTRICT = eqsel,
JOIN = eqjoinsel); JOIN = eqjoinsel,
HASHES);
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = ean13, LEFTARG = ean13,
...@@ -871,15 +1179,64 @@ CREATE OPERATOR <> ( ...@@ -871,15 +1179,64 @@ CREATE OPERATOR <> (
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = ean13, LEFTARG = isbn13,
RIGHTARG = ismn13, RIGHTARG = ean13,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = ean13, LEFTARG = isbn13,
RIGHTARG = ean13,
COMMUTATOR = >=,
NEGATOR = >,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR = (
PROCEDURE = isneq,
LEFTARG = isbn13,
RIGHTARG = ean13,
COMMUTATOR = =,
NEGATOR = <>,
RESTRICT = eqsel,
JOIN = eqjoinsel);
CREATE OPERATOR >= (
PROCEDURE = isnge,
LEFTARG = isbn13,
RIGHTARG = ean13,
COMMUTATOR = <=,
NEGATOR = <,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR > (
PROCEDURE = isngt,
LEFTARG = isbn13,
RIGHTARG = ean13,
COMMUTATOR = <,
NEGATOR = <=,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR <> (
PROCEDURE = isnne,
LEFTARG = isbn13,
RIGHTARG = ean13,
COMMUTATOR = <>,
NEGATOR = =,
RESTRICT = neqsel,
JOIN = neqjoinsel);
CREATE OPERATOR < (
PROCEDURE = isnlt,
LEFTARG = ean13,
RIGHTARG = ismn13,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR <= (
PROCEDURE = isnle,
LEFTARG = ean13,
RIGHTARG = ismn13, RIGHTARG = ismn13,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
...@@ -918,6 +1275,55 @@ CREATE OPERATOR <> ( ...@@ -918,6 +1275,55 @@ CREATE OPERATOR <> (
RESTRICT = neqsel, RESTRICT = neqsel,
JOIN = neqjoinsel); JOIN = neqjoinsel);
CREATE OPERATOR < (
PROCEDURE = isnlt,
LEFTARG = ismn13,
RIGHTARG = ean13,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR <= (
PROCEDURE = isnle,
LEFTARG = ismn13,
RIGHTARG = ean13,
COMMUTATOR = >=,
NEGATOR = >,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR = (
PROCEDURE = isneq,
LEFTARG = ismn13,
RIGHTARG = ean13,
COMMUTATOR = =,
NEGATOR = <>,
RESTRICT = eqsel,
JOIN = eqjoinsel);
CREATE OPERATOR >= (
PROCEDURE = isnge,
LEFTARG = ismn13,
RIGHTARG = ean13,
COMMUTATOR = <=,
NEGATOR = <,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR > (
PROCEDURE = isngt,
LEFTARG = ismn13,
RIGHTARG = ean13,
COMMUTATOR = <,
NEGATOR = <=,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR <> (
PROCEDURE = isnne,
LEFTARG = ismn13,
RIGHTARG = ean13,
COMMUTATOR = <>,
NEGATOR = =,
RESTRICT = neqsel,
JOIN = neqjoinsel);
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = ean13, LEFTARG = ean13,
...@@ -1145,72 +1551,480 @@ CREATE OPERATOR >= ( ...@@ -1145,72 +1551,480 @@ CREATE OPERATOR >= (
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel); JOIN = scalargtjoinsel);
CREATE OPERATOR > (
PROCEDURE = isngt,
LEFTARG = ean13,
RIGHTARG = upc,
COMMUTATOR = <,
NEGATOR = <=,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel);
CREATE OPERATOR <> (
PROCEDURE = isnne,
LEFTARG = ean13,
RIGHTARG = upc,
COMMUTATOR = <>,
NEGATOR = =,
RESTRICT = neqsel,
JOIN = neqjoinsel);
--
-- ISBN13 operators:
--
---------------------------------------------------
CREATE OPERATOR < (
PROCEDURE = isnlt,
LEFTARG = isbn13,
RIGHTARG = isbn13,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR <= (
PROCEDURE = isnle,
LEFTARG = isbn13,
RIGHTARG = isbn13,
COMMUTATOR = >=,
NEGATOR = >,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR = (
PROCEDURE = isneq,
LEFTARG = isbn13,
RIGHTARG = isbn13,
COMMUTATOR = =,
NEGATOR = <>,
RESTRICT = eqsel,
JOIN = eqjoinsel,
HASHES);
CREATE OPERATOR >= (
PROCEDURE = isnge,
LEFTARG = isbn13,
RIGHTARG = isbn13,
COMMUTATOR = <=,
NEGATOR = <,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR > (
PROCEDURE = isngt,
LEFTARG = isbn13,
RIGHTARG = isbn13,
COMMUTATOR = <,
NEGATOR = <=,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR <> (
PROCEDURE = isnne,
LEFTARG = isbn13,
RIGHTARG = isbn13,
COMMUTATOR = <>,
NEGATOR = =,
RESTRICT = neqsel,
JOIN = neqjoinsel);
CREATE OPERATOR < (
PROCEDURE = isnlt,
LEFTARG = isbn13,
RIGHTARG = isbn,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR <= (
PROCEDURE = isnle,
LEFTARG = isbn13,
RIGHTARG = isbn,
COMMUTATOR = >=,
NEGATOR = >,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR = (
PROCEDURE = isneq,
LEFTARG = isbn13,
RIGHTARG = isbn,
COMMUTATOR = =,
NEGATOR = <>,
RESTRICT = eqsel,
JOIN = eqjoinsel);
CREATE OPERATOR >= (
PROCEDURE = isnge,
LEFTARG = isbn13,
RIGHTARG = isbn,
COMMUTATOR = <=,
NEGATOR = <,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR > (
PROCEDURE = isngt,
LEFTARG = isbn13,
RIGHTARG = isbn,
COMMUTATOR = <,
NEGATOR = <=,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR <> (
PROCEDURE = isnne,
LEFTARG = isbn13,
RIGHTARG = isbn,
COMMUTATOR = <>,
NEGATOR = =,
RESTRICT = neqsel,
JOIN = neqjoinsel);
--
-- ISBN operators:
--
---------------------------------------------------
CREATE OPERATOR < (
PROCEDURE = isnlt,
LEFTARG = isbn,
RIGHTARG = isbn,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR <= (
PROCEDURE = isnle,
LEFTARG = isbn,
RIGHTARG = isbn,
COMMUTATOR = >=,
NEGATOR = >,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR = (
PROCEDURE = isneq,
LEFTARG = isbn,
RIGHTARG = isbn,
COMMUTATOR = =,
NEGATOR = <>,
RESTRICT = eqsel,
JOIN = eqjoinsel,
HASHES);
CREATE OPERATOR >= (
PROCEDURE = isnge,
LEFTARG = isbn,
RIGHTARG = isbn,
COMMUTATOR = <=,
NEGATOR = <,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR > (
PROCEDURE = isngt,
LEFTARG = isbn,
RIGHTARG = isbn,
COMMUTATOR = <,
NEGATOR = <=,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR <> (
PROCEDURE = isnne,
LEFTARG = isbn,
RIGHTARG = isbn,
COMMUTATOR = <>,
NEGATOR = =,
RESTRICT = neqsel,
JOIN = neqjoinsel);
CREATE OPERATOR < (
PROCEDURE = isnlt,
LEFTARG = isbn,
RIGHTARG = isbn13,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR <= (
PROCEDURE = isnle,
LEFTARG = isbn,
RIGHTARG = isbn13,
COMMUTATOR = >=,
NEGATOR = >,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR = (
PROCEDURE = isneq,
LEFTARG = isbn,
RIGHTARG = isbn13,
COMMUTATOR = =,
NEGATOR = <>,
RESTRICT = eqsel,
JOIN = eqjoinsel);
CREATE OPERATOR >= (
PROCEDURE = isnge,
LEFTARG = isbn,
RIGHTARG = isbn13,
COMMUTATOR = <=,
NEGATOR = <,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR > (
PROCEDURE = isngt,
LEFTARG = isbn,
RIGHTARG = isbn13,
COMMUTATOR = <,
NEGATOR = <=,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR <> (
PROCEDURE = isnne,
LEFTARG = isbn,
RIGHTARG = isbn13,
COMMUTATOR = <>,
NEGATOR = =,
RESTRICT = neqsel,
JOIN = neqjoinsel);
CREATE OPERATOR < (
PROCEDURE = isnlt,
LEFTARG = isbn,
RIGHTARG = ean13,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR <= (
PROCEDURE = isnle,
LEFTARG = isbn,
RIGHTARG = ean13,
COMMUTATOR = >=,
NEGATOR = >,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR = (
PROCEDURE = isneq,
LEFTARG = isbn,
RIGHTARG = ean13,
COMMUTATOR = =,
NEGATOR = <>,
RESTRICT = eqsel,
JOIN = eqjoinsel);
CREATE OPERATOR >= (
PROCEDURE = isnge,
LEFTARG = isbn,
RIGHTARG = ean13,
COMMUTATOR = <=,
NEGATOR = <,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR > (
PROCEDURE = isngt,
LEFTARG = isbn,
RIGHTARG = ean13,
COMMUTATOR = <,
NEGATOR = <=,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR <> (
PROCEDURE = isnne,
LEFTARG = isbn,
RIGHTARG = ean13,
COMMUTATOR = <>,
NEGATOR = =,
RESTRICT = neqsel,
JOIN = neqjoinsel);
--
-- ISMN13 operators:
--
---------------------------------------------------
CREATE OPERATOR < (
PROCEDURE = isnlt,
LEFTARG = ismn13,
RIGHTARG = ismn13,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR <= (
PROCEDURE = isnle,
LEFTARG = ismn13,
RIGHTARG = ismn13,
COMMUTATOR = >=,
NEGATOR = >,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR = (
PROCEDURE = isneq,
LEFTARG = ismn13,
RIGHTARG = ismn13,
COMMUTATOR = =,
NEGATOR = <>,
RESTRICT = eqsel,
JOIN = eqjoinsel,
HASHES);
CREATE OPERATOR >= (
PROCEDURE = isnge,
LEFTARG = ismn13,
RIGHTARG = ismn13,
COMMUTATOR = <=,
NEGATOR = <,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR > (
PROCEDURE = isngt,
LEFTARG = ismn13,
RIGHTARG = ismn13,
COMMUTATOR = <,
NEGATOR = <=,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR <> (
PROCEDURE = isnne,
LEFTARG = ismn13,
RIGHTARG = ismn13,
COMMUTATOR = <>,
NEGATOR = =,
RESTRICT = neqsel,
JOIN = neqjoinsel);
CREATE OPERATOR < (
PROCEDURE = isnlt,
LEFTARG = ismn13,
RIGHTARG = ismn,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR <= (
PROCEDURE = isnle,
LEFTARG = ismn13,
RIGHTARG = ismn,
COMMUTATOR = >=,
NEGATOR = >,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR = (
PROCEDURE = isneq,
LEFTARG = ismn13,
RIGHTARG = ismn,
COMMUTATOR = =,
NEGATOR = <>,
RESTRICT = eqsel,
JOIN = eqjoinsel);
CREATE OPERATOR >= (
PROCEDURE = isnge,
LEFTARG = ismn13,
RIGHTARG = ismn,
COMMUTATOR = <=,
NEGATOR = <,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR > (
PROCEDURE = isngt,
LEFTARG = ismn13,
RIGHTARG = ismn,
COMMUTATOR = <,
NEGATOR = <=,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR <> (
PROCEDURE = isnne,
LEFTARG = ismn13,
RIGHTARG = ismn,
COMMUTATOR = <>,
NEGATOR = =,
RESTRICT = neqsel,
JOIN = neqjoinsel);
--
-- ISMN operators:
--
---------------------------------------------------
CREATE OPERATOR < (
PROCEDURE = isnlt,
LEFTARG = ismn,
RIGHTARG = ismn,
COMMUTATOR = >,
NEGATOR = >=,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR <= (
PROCEDURE = isnle,
LEFTARG = ismn,
RIGHTARG = ismn,
COMMUTATOR = >=,
NEGATOR = >,
RESTRICT = scalarltsel,
JOIN = scalarltjoinsel);
CREATE OPERATOR = (
PROCEDURE = isneq,
LEFTARG = ismn,
RIGHTARG = ismn,
COMMUTATOR = =,
NEGATOR = <>,
RESTRICT = eqsel,
JOIN = eqjoinsel,
HASHES);
CREATE OPERATOR >= (
PROCEDURE = isnge,
LEFTARG = ismn,
RIGHTARG = ismn,
COMMUTATOR = <=,
NEGATOR = <,
RESTRICT = scalargtsel,
JOIN = scalargtjoinsel );
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = ean13, LEFTARG = ismn,
RIGHTARG = upc, RIGHTARG = ismn,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel); JOIN = scalargtjoinsel );
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = ean13, LEFTARG = ismn,
RIGHTARG = upc, RIGHTARG = ismn,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
RESTRICT = neqsel, RESTRICT = neqsel,
JOIN = neqjoinsel); JOIN = neqjoinsel);
--
-- ISBN13 operators:
--
---------------------------------------------------
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn13, RIGHTARG = ismn13,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn13, RIGHTARG = ismn13,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR = ( CREATE OPERATOR = (
PROCEDURE = isneq, PROCEDURE = isneq,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn13, RIGHTARG = ismn13,
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
RESTRICT = eqsel, RESTRICT = eqsel,
JOIN = eqjoinsel); JOIN = eqjoinsel);
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn13, RIGHTARG = ismn13,
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn13, RIGHTARG = ismn13,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn13, RIGHTARG = ismn13,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
RESTRICT = neqsel, RESTRICT = neqsel,
...@@ -1218,154 +2032,151 @@ CREATE OPERATOR <> ( ...@@ -1218,154 +2032,151 @@ CREATE OPERATOR <> (
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn, RIGHTARG = ean13,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn, RIGHTARG = ean13,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR = ( CREATE OPERATOR = (
PROCEDURE = isneq, PROCEDURE = isneq,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn, RIGHTARG = ean13,
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
RESTRICT = eqsel, RESTRICT = eqsel,
JOIN = eqjoinsel); JOIN = eqjoinsel);
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn, RIGHTARG = ean13,
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn, RIGHTARG = ean13,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = isbn13, LEFTARG = ismn,
RIGHTARG = isbn, RIGHTARG = ean13,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
RESTRICT = neqsel, RESTRICT = neqsel,
JOIN = neqjoinsel); JOIN = neqjoinsel);
-- --
-- ISBN operators: -- ISSN13 operators:
-- --
--------------------------------------------------- ---------------------------------------------------
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = isbn, LEFTARG = issn13,
RIGHTARG = isbn, RIGHTARG = issn13,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = isbn, LEFTARG = issn13,
RIGHTARG = isbn, RIGHTARG = issn13,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR = ( CREATE OPERATOR = (
PROCEDURE = isneq, PROCEDURE = isneq,
LEFTARG = isbn, LEFTARG = issn13,
RIGHTARG = isbn, RIGHTARG = issn13,
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
RESTRICT = eqsel, RESTRICT = eqsel,
JOIN = eqjoinsel); JOIN = eqjoinsel,
HASHES);
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = isbn, LEFTARG = issn13,
RIGHTARG = isbn, RIGHTARG = issn13,
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = isbn, LEFTARG = issn13,
RIGHTARG = isbn, RIGHTARG = issn13,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = isbn, LEFTARG = issn13,
RIGHTARG = isbn, RIGHTARG = issn13,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
RESTRICT = neqsel, RESTRICT = neqsel,
JOIN = neqjoinsel); JOIN = neqjoinsel);
--
-- ISMN13 operators:
--
---------------------------------------------------
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn13, RIGHTARG = issn,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn13, RIGHTARG = issn,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR = ( CREATE OPERATOR = (
PROCEDURE = isneq, PROCEDURE = isneq,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn13, RIGHTARG = issn,
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
RESTRICT = eqsel, RESTRICT = eqsel,
JOIN = eqjoinsel); JOIN = eqjoinsel);
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn13, RIGHTARG = issn,
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn13, RIGHTARG = issn,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn13, RIGHTARG = issn,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
RESTRICT = neqsel, RESTRICT = neqsel,
...@@ -1373,113 +2184,110 @@ CREATE OPERATOR <> ( ...@@ -1373,113 +2184,110 @@ CREATE OPERATOR <> (
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn, RIGHTARG = ean13,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn, RIGHTARG = ean13,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR = ( CREATE OPERATOR = (
PROCEDURE = isneq, PROCEDURE = isneq,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn, RIGHTARG = ean13,
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
RESTRICT = eqsel, RESTRICT = eqsel,
JOIN = eqjoinsel); JOIN = eqjoinsel);
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn, RIGHTARG = ean13,
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn, RIGHTARG = ean13,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = ismn13, LEFTARG = issn13,
RIGHTARG = ismn, RIGHTARG = ean13,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
RESTRICT = neqsel, RESTRICT = neqsel,
JOIN = neqjoinsel); JOIN = neqjoinsel);
-- --
-- ISMN operators: -- ISSN operators:
-- --
--------------------------------------------------- ---------------------------------------------------
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = ismn, LEFTARG = issn,
RIGHTARG = ismn, RIGHTARG = issn,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = ismn, LEFTARG = issn,
RIGHTARG = ismn, RIGHTARG = issn,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR = ( CREATE OPERATOR = (
PROCEDURE = isneq, PROCEDURE = isneq,
LEFTARG = ismn, LEFTARG = issn,
RIGHTARG = ismn, RIGHTARG = issn,
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
RESTRICT = eqsel, RESTRICT = eqsel,
JOIN = eqjoinsel); JOIN = eqjoinsel,
HASHES);
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = ismn, LEFTARG = issn,
RIGHTARG = ismn, RIGHTARG = issn,
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = ismn, LEFTARG = issn,
RIGHTARG = ismn, RIGHTARG = issn,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = ismn, LEFTARG = issn,
RIGHTARG = ismn, RIGHTARG = issn,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
RESTRICT = neqsel, RESTRICT = neqsel,
JOIN = neqjoinsel); JOIN = neqjoinsel);
--
-- ISSN13 operators:
--
---------------------------------------------------
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn13, RIGHTARG = issn13,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
...@@ -1487,7 +2295,7 @@ CREATE OPERATOR < ( ...@@ -1487,7 +2295,7 @@ CREATE OPERATOR < (
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn13, RIGHTARG = issn13,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
...@@ -1495,7 +2303,7 @@ CREATE OPERATOR <= ( ...@@ -1495,7 +2303,7 @@ CREATE OPERATOR <= (
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR = ( CREATE OPERATOR = (
PROCEDURE = isneq, PROCEDURE = isneq,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn13, RIGHTARG = issn13,
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
...@@ -1503,7 +2311,7 @@ CREATE OPERATOR = ( ...@@ -1503,7 +2311,7 @@ CREATE OPERATOR = (
JOIN = eqjoinsel); JOIN = eqjoinsel);
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn13, RIGHTARG = issn13,
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
...@@ -1511,7 +2319,7 @@ CREATE OPERATOR >= ( ...@@ -1511,7 +2319,7 @@ CREATE OPERATOR >= (
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn13, RIGHTARG = issn13,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
...@@ -1519,7 +2327,7 @@ CREATE OPERATOR > ( ...@@ -1519,7 +2327,7 @@ CREATE OPERATOR > (
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn13, RIGHTARG = issn13,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
...@@ -1528,114 +2336,111 @@ CREATE OPERATOR <> ( ...@@ -1528,114 +2336,111 @@ CREATE OPERATOR <> (
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn, RIGHTARG = ean13,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn, RIGHTARG = ean13,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR = ( CREATE OPERATOR = (
PROCEDURE = isneq, PROCEDURE = isneq,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn, RIGHTARG = ean13,
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
RESTRICT = eqsel, RESTRICT = eqsel,
JOIN = eqjoinsel); JOIN = eqjoinsel);
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn, RIGHTARG = ean13,
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn, RIGHTARG = ean13,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = issn13, LEFTARG = issn,
RIGHTARG = issn, RIGHTARG = ean13,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
RESTRICT = neqsel, RESTRICT = neqsel,
JOIN = neqjoinsel); JOIN = neqjoinsel);
-- --
-- ISSN operators: -- UPC operators:
-- --
--------------------------------------------------- ---------------------------------------------------
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = issn, LEFTARG = upc,
RIGHTARG = issn, RIGHTARG = upc,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = issn, LEFTARG = upc,
RIGHTARG = issn, RIGHTARG = upc,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
JOIN = scalarltjoinsel); JOIN = scalarltjoinsel);
CREATE OPERATOR = ( CREATE OPERATOR = (
PROCEDURE = isneq, PROCEDURE = isneq,
LEFTARG = issn, LEFTARG = upc,
RIGHTARG = issn, RIGHTARG = upc,
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
RESTRICT = eqsel, RESTRICT = eqsel,
JOIN = eqjoinsel); JOIN = eqjoinsel,
HASHES);
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = issn, LEFTARG = upc,
RIGHTARG = issn, RIGHTARG = upc,
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = issn, LEFTARG = upc,
RIGHTARG = issn, RIGHTARG = upc,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
JOIN = scalargtjoinsel ); JOIN = scalargtjoinsel );
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = issn, LEFTARG = upc,
RIGHTARG = issn, RIGHTARG = upc,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
RESTRICT = neqsel, RESTRICT = neqsel,
JOIN = neqjoinsel); JOIN = neqjoinsel);
--
-- UPC operators:
--
---------------------------------------------------
CREATE OPERATOR < ( CREATE OPERATOR < (
PROCEDURE = isnlt, PROCEDURE = isnlt,
LEFTARG = upc, LEFTARG = upc,
RIGHTARG = upc, RIGHTARG = ean13,
COMMUTATOR = >, COMMUTATOR = >,
NEGATOR = >=, NEGATOR = >=,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
...@@ -1643,7 +2448,7 @@ CREATE OPERATOR < ( ...@@ -1643,7 +2448,7 @@ CREATE OPERATOR < (
CREATE OPERATOR <= ( CREATE OPERATOR <= (
PROCEDURE = isnle, PROCEDURE = isnle,
LEFTARG = upc, LEFTARG = upc,
RIGHTARG = upc, RIGHTARG = ean13,
COMMUTATOR = >=, COMMUTATOR = >=,
NEGATOR = >, NEGATOR = >,
RESTRICT = scalarltsel, RESTRICT = scalarltsel,
...@@ -1651,7 +2456,7 @@ CREATE OPERATOR <= ( ...@@ -1651,7 +2456,7 @@ CREATE OPERATOR <= (
CREATE OPERATOR = ( CREATE OPERATOR = (
PROCEDURE = isneq, PROCEDURE = isneq,
LEFTARG = upc, LEFTARG = upc,
RIGHTARG = upc, RIGHTARG = ean13,
COMMUTATOR = =, COMMUTATOR = =,
NEGATOR = <>, NEGATOR = <>,
RESTRICT = eqsel, RESTRICT = eqsel,
...@@ -1659,7 +2464,7 @@ CREATE OPERATOR = ( ...@@ -1659,7 +2464,7 @@ CREATE OPERATOR = (
CREATE OPERATOR >= ( CREATE OPERATOR >= (
PROCEDURE = isnge, PROCEDURE = isnge,
LEFTARG = upc, LEFTARG = upc,
RIGHTARG = upc, RIGHTARG = ean13,
COMMUTATOR = <=, COMMUTATOR = <=,
NEGATOR = <, NEGATOR = <,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
...@@ -1667,7 +2472,7 @@ CREATE OPERATOR >= ( ...@@ -1667,7 +2472,7 @@ CREATE OPERATOR >= (
CREATE OPERATOR > ( CREATE OPERATOR > (
PROCEDURE = isngt, PROCEDURE = isngt,
LEFTARG = upc, LEFTARG = upc,
RIGHTARG = upc, RIGHTARG = ean13,
COMMUTATOR = <, COMMUTATOR = <,
NEGATOR = <=, NEGATOR = <=,
RESTRICT = scalargtsel, RESTRICT = scalargtsel,
...@@ -1675,7 +2480,7 @@ CREATE OPERATOR > ( ...@@ -1675,7 +2480,7 @@ CREATE OPERATOR > (
CREATE OPERATOR <> ( CREATE OPERATOR <> (
PROCEDURE = isnne, PROCEDURE = isnne,
LEFTARG = upc, LEFTARG = upc,
RIGHTARG = upc, RIGHTARG = ean13,
COMMUTATOR = <>, COMMUTATOR = <>,
NEGATOR = =, NEGATOR = =,
RESTRICT = neqsel, RESTRICT = neqsel,
...@@ -1808,22 +2613,22 @@ CREATE FUNCTION btisbn13cmp(isbn13, isbn) ...@@ -1808,22 +2613,22 @@ CREATE FUNCTION btisbn13cmp(isbn13, isbn)
CREATE OPERATOR CLASS isbn13_ops DEFAULT CREATE OPERATOR CLASS isbn13_ops DEFAULT
FOR TYPE isbn13 USING btree AS FOR TYPE isbn13 USING btree AS
-- OPERATOR 1 < (isbn13, ean13), OPERATOR 1 < (isbn13, ean13),
OPERATOR 1 < (isbn13, isbn), OPERATOR 1 < (isbn13, isbn),
OPERATOR 1 <, OPERATOR 1 <,
-- OPERATOR 2 <= (isbn13, ean13), OPERATOR 2 <= (isbn13, ean13),
OPERATOR 2 <= (isbn13, isbn), OPERATOR 2 <= (isbn13, isbn),
OPERATOR 2 <=, OPERATOR 2 <=,
-- OPERATOR 3 = (isbn13, ean13), OPERATOR 3 = (isbn13, ean13),
OPERATOR 3 = (isbn13, isbn), OPERATOR 3 = (isbn13, isbn),
OPERATOR 3 =, OPERATOR 3 =,
-- OPERATOR 4 >= (isbn13, ean13), OPERATOR 4 >= (isbn13, ean13),
OPERATOR 4 >= (isbn13, isbn), OPERATOR 4 >= (isbn13, isbn),
OPERATOR 4 >=, OPERATOR 4 >=,
-- OPERATOR 5 > (isbn13, ean13), OPERATOR 5 > (isbn13, ean13),
OPERATOR 5 > (isbn13, isbn), OPERATOR 5 > (isbn13, isbn),
OPERATOR 5 >, OPERATOR 5 >,
-- FUNCTION 1 btisbn13cmp(isbn13, ean13), FUNCTION 1 btisbn13cmp(isbn13, ean13),
FUNCTION 1 btisbn13cmp(isbn13, isbn), FUNCTION 1 btisbn13cmp(isbn13, isbn),
FUNCTION 1 btisbn13cmp(isbn13, isbn13); FUNCTION 1 btisbn13cmp(isbn13, isbn13);
...@@ -1858,23 +2663,23 @@ CREATE FUNCTION btisbncmp(isbn, isbn13) ...@@ -1858,23 +2663,23 @@ CREATE FUNCTION btisbncmp(isbn, isbn13)
CREATE OPERATOR CLASS isbn_ops DEFAULT CREATE OPERATOR CLASS isbn_ops DEFAULT
FOR TYPE isbn USING btree AS FOR TYPE isbn USING btree AS
-- OPERATOR 1 < (isbn, ean13), OPERATOR 1 < (isbn, ean13),
-- OPERATOR 1 < (isbn, isbn13), OPERATOR 1 < (isbn, isbn13),
OPERATOR 1 <, OPERATOR 1 <,
-- OPERATOR 2 <= (isbn, ean13), OPERATOR 2 <= (isbn, ean13),
-- OPERATOR 2 <= (isbn, isbn13), OPERATOR 2 <= (isbn, isbn13),
OPERATOR 2 <=, OPERATOR 2 <=,
-- OPERATOR 3 = (isbn, ean13), OPERATOR 3 = (isbn, ean13),
-- OPERATOR 3 = (isbn, isbn13), OPERATOR 3 = (isbn, isbn13),
OPERATOR 3 =, OPERATOR 3 =,
-- OPERATOR 4 >= (isbn, ean13), OPERATOR 4 >= (isbn, ean13),
-- OPERATOR 4 >= (isbn, isbn13), OPERATOR 4 >= (isbn, isbn13),
OPERATOR 4 >=, OPERATOR 4 >=,
-- OPERATOR 5 > (isbn, ean13), OPERATOR 5 > (isbn, ean13),
-- OPERATOR 5 > (isbn, isbn13), OPERATOR 5 > (isbn, isbn13),
OPERATOR 5 >, OPERATOR 5 >,
-- FUNCTION 1 btisbncmp(isbn, ean13), FUNCTION 1 btisbncmp(isbn, ean13),
-- FUNCTION 1 btisbncmp(isbn, isbn13), FUNCTION 1 btisbncmp(isbn, isbn13),
FUNCTION 1 btisbncmp(isbn, isbn); FUNCTION 1 btisbncmp(isbn, isbn);
CREATE FUNCTION hashisbn(isbn) CREATE FUNCTION hashisbn(isbn)
...@@ -1908,22 +2713,22 @@ CREATE FUNCTION btismn13cmp(ismn13, ismn) ...@@ -1908,22 +2713,22 @@ CREATE FUNCTION btismn13cmp(ismn13, ismn)
CREATE OPERATOR CLASS ismn13_ops DEFAULT CREATE OPERATOR CLASS ismn13_ops DEFAULT
FOR TYPE ismn13 USING btree AS FOR TYPE ismn13 USING btree AS
-- OPERATOR 1 < (ismn13, ean13), OPERATOR 1 < (ismn13, ean13),
OPERATOR 1 < (ismn13, ismn), OPERATOR 1 < (ismn13, ismn),
OPERATOR 1 <, OPERATOR 1 <,
-- OPERATOR 2 <= (ismn13, ean13), OPERATOR 2 <= (ismn13, ean13),
OPERATOR 2 <= (ismn13, ismn), OPERATOR 2 <= (ismn13, ismn),
OPERATOR 2 <=, OPERATOR 2 <=,
-- OPERATOR 3 = (ismn13, ean13), OPERATOR 3 = (ismn13, ean13),
OPERATOR 3 = (ismn13, ismn), OPERATOR 3 = (ismn13, ismn),
OPERATOR 3 =, OPERATOR 3 =,
-- OPERATOR 4 >= (ismn13, ean13), OPERATOR 4 >= (ismn13, ean13),
OPERATOR 4 >= (ismn13, ismn), OPERATOR 4 >= (ismn13, ismn),
OPERATOR 4 >=, OPERATOR 4 >=,
-- OPERATOR 5 > (ismn13, ean13), OPERATOR 5 > (ismn13, ean13),
OPERATOR 5 > (ismn13, ismn), OPERATOR 5 > (ismn13, ismn),
OPERATOR 5 >, OPERATOR 5 >,
-- FUNCTION 1 btismn13cmp(ismn13, ean13), FUNCTION 1 btismn13cmp(ismn13, ean13),
FUNCTION 1 btismn13cmp(ismn13, ismn), FUNCTION 1 btismn13cmp(ismn13, ismn),
FUNCTION 1 btismn13cmp(ismn13, ismn13); FUNCTION 1 btismn13cmp(ismn13, ismn13);
...@@ -1958,23 +2763,23 @@ CREATE FUNCTION btismncmp(ismn, ismn13) ...@@ -1958,23 +2763,23 @@ CREATE FUNCTION btismncmp(ismn, ismn13)
CREATE OPERATOR CLASS ismn_ops DEFAULT CREATE OPERATOR CLASS ismn_ops DEFAULT
FOR TYPE ismn USING btree AS FOR TYPE ismn USING btree AS
-- OPERATOR 1 < (ismn, ean13), OPERATOR 1 < (ismn, ean13),
-- OPERATOR 1 < (ismn, ismn13), OPERATOR 1 < (ismn, ismn13),
OPERATOR 1 <, OPERATOR 1 <,
-- OPERATOR 2 <= (ismn, ean13), OPERATOR 2 <= (ismn, ean13),
-- OPERATOR 2 <= (ismn, ismn13), OPERATOR 2 <= (ismn, ismn13),
OPERATOR 2 <=, OPERATOR 2 <=,
-- OPERATOR 3 = (ismn, ean13), OPERATOR 3 = (ismn, ean13),
-- OPERATOR 3 = (ismn, ismn13), OPERATOR 3 = (ismn, ismn13),
OPERATOR 3 =, OPERATOR 3 =,
-- OPERATOR 4 >= (ismn, ean13), OPERATOR 4 >= (ismn, ean13),
-- OPERATOR 4 >= (ismn, ismn13), OPERATOR 4 >= (ismn, ismn13),
OPERATOR 4 >=, OPERATOR 4 >=,
-- OPERATOR 5 > (ismn, ean13), OPERATOR 5 > (ismn, ean13),
-- OPERATOR 5 > (ismn, ismn13), OPERATOR 5 > (ismn, ismn13),
OPERATOR 5 >, OPERATOR 5 >,
-- FUNCTION 1 btismncmp(ismn, ean13), FUNCTION 1 btismncmp(ismn, ean13),
-- FUNCTION 1 btismncmp(ismn, ismn13), FUNCTION 1 btismncmp(ismn, ismn13),
FUNCTION 1 btismncmp(ismn, ismn); FUNCTION 1 btismncmp(ismn, ismn);
CREATE FUNCTION hashismn(ismn) CREATE FUNCTION hashismn(ismn)
...@@ -2008,22 +2813,22 @@ CREATE FUNCTION btissn13cmp(issn13, issn) ...@@ -2008,22 +2813,22 @@ CREATE FUNCTION btissn13cmp(issn13, issn)
CREATE OPERATOR CLASS issn13_ops DEFAULT CREATE OPERATOR CLASS issn13_ops DEFAULT
FOR TYPE issn13 USING btree AS FOR TYPE issn13 USING btree AS
-- OPERATOR 1 < (issn13, ean13), OPERATOR 1 < (issn13, ean13),
OPERATOR 1 < (issn13, issn), OPERATOR 1 < (issn13, issn),
OPERATOR 1 <, OPERATOR 1 <,
-- OPERATOR 2 <= (issn13, ean13), OPERATOR 2 <= (issn13, ean13),
OPERATOR 2 <= (issn13, issn), OPERATOR 2 <= (issn13, issn),
OPERATOR 2 <=, OPERATOR 2 <=,
-- OPERATOR 3 = (issn13, ean13), OPERATOR 3 = (issn13, ean13),
OPERATOR 3 = (issn13, issn), OPERATOR 3 = (issn13, issn),
OPERATOR 3 =, OPERATOR 3 =,
-- OPERATOR 4 >= (issn13, ean13), OPERATOR 4 >= (issn13, ean13),
OPERATOR 4 >= (issn13, issn), OPERATOR 4 >= (issn13, issn),
OPERATOR 4 >=, OPERATOR 4 >=,
-- OPERATOR 5 > (issn13, ean13), OPERATOR 5 > (issn13, ean13),
OPERATOR 5 > (issn13, issn), OPERATOR 5 > (issn13, issn),
OPERATOR 5 >, OPERATOR 5 >,
-- FUNCTION 1 btissn13cmp(issn13, ean13), FUNCTION 1 btissn13cmp(issn13, ean13),
FUNCTION 1 btissn13cmp(issn13, issn), FUNCTION 1 btissn13cmp(issn13, issn),
FUNCTION 1 btissn13cmp(issn13, issn13); FUNCTION 1 btissn13cmp(issn13, issn13);
...@@ -2058,23 +2863,23 @@ CREATE FUNCTION btissncmp(issn, issn13) ...@@ -2058,23 +2863,23 @@ CREATE FUNCTION btissncmp(issn, issn13)
CREATE OPERATOR CLASS issn_ops DEFAULT CREATE OPERATOR CLASS issn_ops DEFAULT
FOR TYPE issn USING btree AS FOR TYPE issn USING btree AS
-- OPERATOR 1 < (issn, ean13), OPERATOR 1 < (issn, ean13),
-- OPERATOR 1 < (issn, issn13), OPERATOR 1 < (issn, issn13),
OPERATOR 1 <, OPERATOR 1 <,
-- OPERATOR 2 <= (issn, ean13), OPERATOR 2 <= (issn, ean13),
-- OPERATOR 2 <= (issn, issn13), OPERATOR 2 <= (issn, issn13),
OPERATOR 2 <=, OPERATOR 2 <=,
-- OPERATOR 3 = (issn, ean13), OPERATOR 3 = (issn, ean13),
-- OPERATOR 3 = (issn, issn13), OPERATOR 3 = (issn, issn13),
OPERATOR 3 =, OPERATOR 3 =,
-- OPERATOR 4 >= (issn, ean13), OPERATOR 4 >= (issn, ean13),
-- OPERATOR 4 >= (issn, issn13), OPERATOR 4 >= (issn, issn13),
OPERATOR 4 >=, OPERATOR 4 >=,
-- OPERATOR 5 > (issn, ean13), OPERATOR 5 > (issn, ean13),
-- OPERATOR 5 > (issn, issn13), OPERATOR 5 > (issn, issn13),
OPERATOR 5 >, OPERATOR 5 >,
-- FUNCTION 1 btissncmp(issn, ean13), FUNCTION 1 btissncmp(issn, ean13),
-- FUNCTION 1 btissncmp(issn, issn13), FUNCTION 1 btissncmp(issn, issn13),
FUNCTION 1 btissncmp(issn, issn); FUNCTION 1 btissncmp(issn, issn);
CREATE FUNCTION hashissn(issn) CREATE FUNCTION hashissn(issn)
...@@ -2103,17 +2908,17 @@ CREATE FUNCTION btupccmp(upc, ean13) ...@@ -2103,17 +2908,17 @@ CREATE FUNCTION btupccmp(upc, ean13)
CREATE OPERATOR CLASS upc_ops DEFAULT CREATE OPERATOR CLASS upc_ops DEFAULT
FOR TYPE upc USING btree AS FOR TYPE upc USING btree AS
-- OPERATOR 1 < (upc, ean13), OPERATOR 1 < (upc, ean13),
OPERATOR 1 <, OPERATOR 1 <,
-- OPERATOR 2 <= (upc, ean13), OPERATOR 2 <= (upc, ean13),
OPERATOR 2 <=, OPERATOR 2 <=,
-- OPERATOR 3 = (upc, ean13), OPERATOR 3 = (upc, ean13),
OPERATOR 3 =, OPERATOR 3 =,
-- OPERATOR 4 >= (upc, ean13), OPERATOR 4 >= (upc, ean13),
OPERATOR 4 >=, OPERATOR 4 >=,
-- OPERATOR 5 > (upc, ean13), OPERATOR 5 > (upc, ean13),
OPERATOR 5 >, OPERATOR 5 >,
-- FUNCTION 1 btupccmp(upc, ean13), FUNCTION 1 btupccmp(upc, ean13),
FUNCTION 1 btupccmp(upc, upc); FUNCTION 1 btupccmp(upc, upc);
CREATE FUNCTION hashupc(upc) CREATE FUNCTION hashupc(upc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment