Re: Another swing at JSON - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: Another swing at JSON
Date
Msg-id m24o6lae6c.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: Another swing at JSON  (Joseph Adams <joeyadams3.14159@gmail.com>)
Responses Re: Another swing at JSON
List pgsql-hackers
Joseph Adams <joeyadams3.14159@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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Problem with pg_upgrade?
Next
From: Christopher Browne
Date:
Subject: Re: Additional options for Sync Replication