PostgreSQL & PL/pgSQL Stored Functions Cheatsheet Boiler-plate stored function CREATE OR REPLACE FUNCTION public.sp_user_ins_status(status smallint) RETURNS integer LANGUAGE plpgsql AS $function$