On fre, 2012-03-09 at 15:33 -0500, Tom Lane wrote:
> What I've wanted from this patch from the beginning was a
> common framework. That is, I want to be able to write something like
>
> SELECT check_function(oid) FROM pg_proc WHERE proowner = 'tgl'
>
> and have it "just work" for all languages for which I have checkers.
> You can't get that with a collection of ad-hoc checkers.
Well, there isn't any program either that will run through, say, the
PostgreSQL source tree and check each file according to the respective
programming language. You pick the checkers for each language yourself
and decide for each checker how to apply it and how to process the
results.