Archive for May 30, 2005

Find out the fd that are in use and by what.

To find out what filedescriptors or sockets are used by a particular application, you can run...

sockstat -u

Method to cleanly DROP FUNCTIONs by wildcard in Postgres

Cut and paste the output of this execution:


SELECT 'DROP function ' || proname || ' ('|| oidvectortypes(proargtypes) || ') CASCADE;' from pg_proc WHERE proname ~ '^create_product$';