[#2736] Improve code generator compatibility with PostgreSQL 8.x by
testing if pg_catalog.pg_enum and information_schema.attributes exist