1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +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:35:53 +00:00
parent 1263d7b8d1
commit 24162978b7
7 changed files with 57 additions and 62 deletions

View File

@ -38,15 +38,15 @@ LANGUAGE 'SQL';
--
CREATE OR REPLACE FUNCTION min(int4,int4)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE 'C';
AS 'MODULE_PATHNAME', 'int4min'
LANGUAGE 'C' STRICT;
-- max(x,y)
--
CREATE OR REPLACE FUNCTION max(int4,int4)
RETURNS int4
AS 'MODULE_PATHNAME'
LANGUAGE 'C';
AS 'MODULE_PATHNAME', 'int4max'
LANGUAGE 'C' STRICT;
-- Return the number of active listeners on a relation
--