Re: Compilation psqlODBC againist older PgSQL

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Ludek Finstrle" <luf(at)pzkagis(dot)cz>, <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Compilation psqlODBC againist older PgSQL
Date: 2005-12-04 20:51:34
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E4E7E626@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

> -----Original Message-----
> From: pgsql-odbc-owner(at)postgresql(dot)org
> [mailto:pgsql-odbc-owner(at)postgresql(dot)org] On Behalf Of Ludek Finstrle
> Sent: 03 December 2005 22:48
> To: pgsql-odbc(at)postgresql(dot)org
> Subject: [ODBC] Compilation psqlODBC againist older PgSQL
>
> Hello,
>
> I take a look at compilation againist older version of PgSQL. First
> step is PgSQL version 7.4.X and 7.3.X. Here is attached patch but it
> needs add
>
> #define PGSQL_VERSION <major number><minor number>
>
> eg.
>
> #degine PGSQL_VERSION 74
>
> into config.h. I'm not compliant with configure. The value
> for PGSQL_VERSION
> could be taken from pg_config --version (output: PostgreSQL 7.4.8).
> How can this be doing in Windows environment? Have we more
> config.h-<version>
> files?

Hi Luf,

I could probably hack up some code to suck the value out of pg_config,
however there is no way I can think of to do the same thing on Windows.
Because we only require a standard Windows + VC++ enviroment, we don't
have any of the tools like awk that we'd need to get and manipulate the
pg_config output.

Given that a build against 8.1 or 8.0 will work with servers back to at
least 7.2 or so iirc, I really don't think it's worth the pain to try to
support the older libpqs. Anyone insistent that they cannot build
against the newer server, will likely have no problem using an
equivalent vintage of psqlodbc.

Regards, Dave.

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Ludek Finstrle 2005-12-04 21:17:47 Re: Compilation psqlODBC againist older PgSQL
Previous Message Ludek Finstrle 2005-12-03 22:47:38 Compilation psqlODBC againist older PgSQL