Today I Learned

hashrocket A Hashrocket project

Find a function OID in Postgres

You can lookup your postgres function OIDs (object identifiers) using the pg_proc table:

select oid from pg_proc where proname ='my_function_name';

This is very useful if you need to find more info about a function but only know the function name.

Looking for help? Hashrocket developers believe that data quality is as important as code quality. We enjoy all the challenges of relational databases, from finding the fastest index, to structuring data to fit the needs of an application. We're eager to share our experiences; check out PG Casts, our series of free PostgreSQL screencasts.