This bypasses checking if the DB is in recovery for versions of postgresthat don't support pg_is_in_recovery() (anything pre-9.0, such asGreenplum).
This patch depends on the "Refactor sql template version picking" patch.