Skip site navigation (1) Skip section navigation (2)

Re: Another swing at JSON

From: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
To: Joseph Adams <joeyadams3(dot)14159(at)gmail(dot)com>
Cc: Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>, Robert Haas <robertmhaas(at)gmail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Another swing at JSON
Date: 2011-03-29 20:02:03
Message-ID: m24o6lae6c.fsf@2ndQuadrant.fr (view raw or flat)
Thread:
Lists: pgsql-hackers
Joseph Adams <joeyadams3(dot)14159(at)gmail(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Christopher BrowneDate: 2011-03-29 20:10:39
Subject: Re: Additional options for Sync Replication
Previous:From: Bruce MomjianDate: 2011-03-29 19:52:44
Subject: Problem with pg_upgrade?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group