-- -- workflow__delete_place/2 -- create or replace function workflow__delete_place( character varying, character varying ) returns int4 as $$ declare delete_place__workflow_key alias for $1; delete_place__place_key alias for $2; begin delete from wf_places where workflow_key = delete_place__workflow_key and place_key = delete_place__place_key; return 0; end;$$ language plpgsql;