I just found the following function in two RDS PostgreSQL 9.3 DBs:
-- -- Name: exec(text); Type: FUNCTION; Schema: public; Owner: adam -- CREATE FUNCTION exec(text) RETURNS text LANGUAGE plpgsql AS $_$ BEGIN EXECUTE $1; RETURN $1; END; $_$; ALTER FUNCTION public.exec(text) OWNER TO adam;
I am pretty sure I did not write this function, and since
exec seems like a security hazard (does it simply execute commands?) It would like to know what is it all about. Searching the method signature didn't help me.
What does this function do?
Is it a security risk of some sort?
Which program/framework might have created it?