Only skip pages marked as clean in the visibility map, if the last 32
[PostgreSQL.git] / contrib / chkpass / chkpass.sql.in
blob80466f67b9e709cc5fa8f03dc2c6731384eba679
1 /* $PostgreSQL$ */
3 -- Adjust this setting to control where the objects get created.
4 SET search_path = public;
6 --
7 -- Input and output functions and the type itself:
8 --
10 CREATE OR REPLACE FUNCTION chkpass_in(cstring)
11 RETURNS chkpass
12 AS 'MODULE_PATHNAME'
13 LANGUAGE C STRICT;
15 CREATE OR REPLACE FUNCTION chkpass_out(chkpass)
16 RETURNS cstring
17 AS 'MODULE_PATHNAME'
18 LANGUAGE C STRICT;
20 CREATE TYPE chkpass (
21 internallength = 16,
22 externallength = 13,
23 input = chkpass_in,
24 output = chkpass_out
27 CREATE OR REPLACE FUNCTION raw(chkpass)
28 RETURNS text
29 AS 'MODULE_PATHNAME', 'chkpass_rout'
30 LANGUAGE C STRICT;
33 -- The various boolean tests:
36 CREATE OR REPLACE FUNCTION eq(chkpass, text)
37 RETURNS bool
38 AS 'MODULE_PATHNAME', 'chkpass_eq'
39 LANGUAGE C STRICT;
41 CREATE OR REPLACE FUNCTION ne(chkpass, text)
42 RETURNS bool
43 AS 'MODULE_PATHNAME', 'chkpass_ne'
44 LANGUAGE C STRICT;
47 -- Now the operators.
50 CREATE OPERATOR = (
51 leftarg = chkpass,
52 rightarg = text,
53 negator = <>,
54 procedure = eq
57 CREATE OPERATOR <> (
58 leftarg = chkpass,
59 rightarg = text,
60 negator = =,
61 procedure = ne
64 COMMENT ON TYPE chkpass IS 'password type with checks';
67 -- eof