Created
March 17, 2012 03:39
-
-
Save Aeon/2054750 to your computer and use it in GitHub Desktop.
psql drop function definitions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment