public
Created

psql drop function definitions

  • Download Gist
gistfile1.sql
SQL
1 2 3
SELECT 'DROP FUNCTION ' || quote_ident(ns.nspname) || '.' || quote_ident(proname) || '(' || oidvectortypes(proargtypes) || ');'
FROM pg_proc INNER JOIN pg_namespace ns ON (pg_proc.pronamespace = ns.oid)
WHERE ns.nspname = 'my_messed_up_schema' order by proname;

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.