There is an open item "pg_controldata - machine readable?" in the list:
The proposal by Joe Conway is adding a new contib module.
Should we add the module to 9.0? If we do so, SGML documentation is required.
IMHO, I'd like to put the feature into the core instead of a contrib
module, but we cannot change the catalog version in this time.
So, how about providing control file information through pg_settings
view? We will retrieve those variables as GUC options.
NTT Open Source Software Center