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: (view raw, whole thread or download thread mbox)
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 }')

Dimitri Fontaine     PostgreSQL : Expertise, Formation et Support

In response to


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-2017 The PostgreSQL Global Development Group