Joseph Adams <joeyadams3.14...@gmail.com> writes: > would be needlessly error-prone. I'm thinking the pg_config utility > should either make PG_VERSION_NUM (e.g. 90100) available, or it should > define something indicating the presence of the new extension system.
Here's the ugly trick from ip4r, that's used by more extension: PREFIX_PGVER = $(shell echo $(VERSION) | awk -F. '{ print $$1*100+$$2 }') Regards, -- Dimitri Fontaine http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers