-- -- mod/2 -- create or replace function mod( smallint, smallint ) returns int2 as $$ int2mod$$ language plpgsql; -- -- mod/2 -- create or replace function mod( integer, integer ) returns int4 as $$ int4mod$$ language plpgsql; -- -- mod/2 -- create or replace function mod( bigint, bigint ) returns int8 as $$ int8mod$$ language plpgsql; -- -- mod/2 -- create or replace function mod( numeric, numeric ) returns numeric as $$ numeric_mod$$ language plpgsql;