1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-09 17:03:00 +03:00

Make sure contrib C functions are marked strict where needed.

Kris Jurka
This commit is contained in:
Tom Lane
2005-01-29 22:36:03 +00:00
parent 9eeeb9809e
commit 2c03786309
3 changed files with 31 additions and 31 deletions

View File

@@ -4,7 +4,7 @@
-- darcy@druid.net
-- http://www.druid.net/darcy/
--
-- $Header: /cvsroot/pgsql/contrib/chkpass/chkpass.sql.in,v 1.1 2001/08/23 16:50:33 tgl Exp $
-- $Header: /cvsroot/pgsql/contrib/chkpass/chkpass.sql.in,v 1.1.2.1 2005/01/29 22:36:03 tgl Exp $
--
-- best viewed with tabs set to 4
--
@@ -16,12 +16,12 @@
create function chkpass_in(opaque)
returns opaque
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function chkpass_out(opaque)
returns opaque
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create type chkpass (
internallength = 16,
@@ -33,7 +33,7 @@ create type chkpass (
create function raw(chkpass)
returns text
as 'MODULE_PATHNAME', 'chkpass_rout'
language 'c';
language 'c' with (isStrict);
--
-- The various boolean tests:
@@ -42,12 +42,12 @@ create function raw(chkpass)
create function eq(chkpass, text)
returns bool
as 'MODULE_PATHNAME', 'chkpass_eq'
language 'c';
language 'c' with (isStrict);
create function ne(chkpass, text)
returns bool
as 'MODULE_PATHNAME', 'chkpass_ne'
language 'c';
language 'c' with (isStrict);
--
-- Now the operators. Note how some of the parameters to some

View File

@@ -1,7 +1,7 @@
--
-- PostgreSQL code for ISSNs.
--
-- $Id: isbn_issn.sql.in,v 1.2 2000/06/19 13:53:39 momjian Exp $
-- $Id: isbn_issn.sql.in,v 1.2.4.1 2005/01/29 22:36:03 tgl Exp $
--
@@ -12,12 +12,12 @@
create function issn_in(opaque)
returns opaque
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function issn_out(opaque)
returns opaque
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create type issn (
internallength = 16,
@@ -33,32 +33,32 @@ create type issn (
create function issn_lt(issn, issn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function issn_le(issn, issn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function issn_eq(issn, issn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function issn_ge(issn, issn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function issn_gt(issn, issn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function issn_ne(issn, issn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
--
-- Now the operators. Note how some of the parameters to some
@@ -116,7 +116,7 @@ create operator <> (
--
-- PostgreSQL code for ISBNs.
--
-- $Id: isbn_issn.sql.in,v 1.2 2000/06/19 13:53:39 momjian Exp $
-- $Id: isbn_issn.sql.in,v 1.2.4.1 2005/01/29 22:36:03 tgl Exp $
--
--
-- Input and output functions and the type itself:
@@ -125,12 +125,12 @@ create operator <> (
create function isbn_in(opaque)
returns opaque
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function isbn_out(opaque)
returns opaque
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create type isbn (
internallength = 16,
@@ -146,32 +146,32 @@ create type isbn (
create function isbn_lt(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function isbn_le(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function isbn_eq(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function isbn_ge(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function isbn_gt(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
create function isbn_ne(isbn, isbn)
returns bool
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
--
-- Now the operators. Note how some of the parameters to some

View File

@@ -1,7 +1,7 @@
--
-- PostgreSQL code for LargeObjects
--
-- $Id: lo.sql.in,v 1.6 2000/11/21 21:51:58 tgl Exp $
-- $Id: lo.sql.in,v 1.6.4.1 2005/01/29 22:36:03 tgl Exp $
--
--
-- Create the data type
@@ -11,13 +11,13 @@
create function lo_in(opaque)
returns opaque
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
-- used by the lo type, it returns the oid of the object
create function lo_out(opaque)
returns opaque
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
-- finally the type itself
create type lo (
@@ -31,7 +31,7 @@ create type lo (
create function lo_oid(lo)
returns oid
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
-- same function, named to allow it to be used as a type coercion, eg:
-- create table a (image lo);
@@ -40,17 +40,17 @@ create function lo_oid(lo)
create function oid(lo)
returns oid
as 'MODULE_PATHNAME', 'lo_oid'
language 'c';
language 'c' with (isStrict);
-- this allows us to convert an oid to a managed lo object
-- ie: insert into test values (lo_import('/fullpath/file')::lo);
create function lo(oid)
returns lo
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);
-- This is used in triggers
create function lo_manage()
returns opaque
as 'MODULE_PATHNAME'
language 'c';
language 'c' with (isStrict);