-- -- apm_application__new/8 -- create or replace function apm_application__new( integer, character varying, character varying, character varying, timestamp with time zone, integer, character varying, integer ) returns int4 as $$ declare application_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_application' 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_application_id integer; begin v_application_id := apm_package__new ( application_id, instance_name, package_key, object_type, creation_date, creation_user, creation_ip, context_id ); return v_application_id; end;$$ language plpgsql;