(no followup to dbi-dev(at)perl(dot)org, getting a little OT there)
On Tuesday 10 December 2002 16:54, Lee Kindness wrote:
> Ian Barwick writes:
> > Something along the lines of
> > char *PQversion(const PGconn *conn) ?
> int PQversion(const PGconn *conn)
> would be better, and easier to parse? For example the value returned
> for 7.3.1 would be 7003001; for 7.4 7004000; for 101.10.2
> 101010002. This allows simple numerical tests...
Sounds logical - I was evidently thinking in Perl ;-).
For reference pg_dump currently parses the SELECT version() string
into an integer thus:
(and just for fun:
"11i Enterprise Edition with Bells and Whistles "
returns -1 ;-)
which works with minor release numbers of 99
In response to
pgsql-hackers by date
|Next:||From: Brian Walker||Date: 2002-12-10 16:47:16|
|Subject: Problem with foreign keys (performance and deadlocks)|
|Previous:||From: Tom Lane||Date: 2002-12-10 16:24:28|
|Subject: Re: Alter domain |
pgsql-interfaces by date
|Next:||From: Bruce Momjian||Date: 2002-12-10 19:10:49|
|Subject: Re: FATAL 1: Password authentication failed|
|Previous:||From: Lee Kindness||Date: 2002-12-10 15:54:07|
|Subject: Re: [INTERFACES] Patch for DBD::Pg pg_relcheck problem|