In short, I'm looking to see if I can keep track of a function's update history. What I am looking for is something like an OID that increments any time a function is updated (or a way to increment something whenever a function is updated).
I'll call this hypothetical term proc_vid.
So for example, say I create a new function:
CREATE FUNCTION example1 (arg1, arg2) $$ {something something} $$ LANGUAGE plpgsql;
then in theory the proc_vid = 1
Then say I update the function (same function, just patched code between the $$'s).
CREATE OR UPDATE FUNCTION example1 (arg1, arg2) $$ {something something *something new*} $$ LANGUAGE plpgsql;
then I'd want to be able to see that proc_vid = 2
Alternatively, I could also live with being able to tell THAT the function has been updated (from sql command line / query - not logs), even if I don't have the proc_vid.