-- -- apm_service__new/8 -- create or replace function apm_service__new( integer, character varying, character varying, character varying, timestamp with time zone, integer, character varying, integer ) returns int4 as $$ declare service_id alias for $1; -- default null instance_name alias for $2; -- default null package_key alias for $3; object_type alias for $4; -- default 'apm_service' creation_date alias for $5; -- default now() creation_user alias for $6; -- default null creation_ip alias for $7; -- default null context_id alias for $8; -- default null v_service_id integer; begin v_service_id := apm_package__new ( service_id, instance_name, package_key, object_type, creation_date, creation_user, creation_ip, context_id ); return v_service_id; end;$$ language plpgsql;