Created
July 4, 2024 09:32
-
-
Save nielsbom/b2cb3c96fd8079b06ef939f6c0bb6c28 to your computer and use it in GitHub Desktop.
Revisions
-
nielsbom created this gist
Jul 4, 2024 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ with function_names (name) as ( SELECT p.proname AS function_name FROM pg_proc p LEFT JOIN pg_depend d ON d.objid = p.oid AND d.deptype = 'e' WHERE p.pronamespace = 'public'::regnamespace AND d.objid IS NULL AND p.prokind = 'f' ORDER BY function_name ) select array_to_string( array(select * from function_names), '|' );