Since we are preparing to add greenplum support, we made a new template loader to automatically pick the available sql template file that corresponds to the postgres version number.
Our next patch will be to remove duplicated sql template files since many of the files are identical between versions.