mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
Make sure contrib C functions are marked strict where needed.
Kris Jurka
This commit is contained in:
@@ -96,7 +96,7 @@ active_listeners(text *relname)
|
||||
{
|
||||
d = heap_getattr(lTuple, Anum_pg_listener_pid, tdesc, &isnull);
|
||||
pid = DatumGetInt32(d);
|
||||
if ((pid == ourpid) || (kill(pid, SIGTSTP) == 0))
|
||||
if ((pid == ourpid) || (kill(pid, 0) == 0))
|
||||
count++;
|
||||
}
|
||||
heap_endscan(sRel);
|
||||
|
@@ -37,14 +37,14 @@ LANGUAGE 'SQL';
|
||||
CREATE OR REPLACE FUNCTION min(int4,int4)
|
||||
RETURNS int4
|
||||
AS 'MODULE_PATHNAME', 'int4min'
|
||||
LANGUAGE 'C';
|
||||
LANGUAGE 'C' STRICT;
|
||||
|
||||
-- max(x,y)
|
||||
--
|
||||
CREATE OR REPLACE FUNCTION max(int4,int4)
|
||||
RETURNS int4
|
||||
AS 'MODULE_PATHNAME', 'int4max'
|
||||
LANGUAGE 'C';
|
||||
LANGUAGE 'C' STRICT;
|
||||
|
||||
-- Return the number of active listeners on a relation
|
||||
--
|
||||
|
Reference in New Issue
Block a user