Re: PHP 4.0.4pl1 / Beta 5 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PHP 4.0.4pl1 / Beta 5
Date
Msg-id 25052.982598560@sss.pgh.pa.us
Whole thread Raw
In response to Re: PHP 4.0.4pl1 / Beta 5  (Sascha Schumann <sascha@schumann.cx>)
Responses Re: PHP 4.0.4pl1 / Beta 5  (Sascha Schumann <sascha@schumann.cx>)
List pgsql-hackers
Sascha Schumann <sascha@schumann.cx> writes:
>     It'd be cool, if PostgreSQL and/or the C front-end would have
>     a numeric version indicator which we could use to check for
>     features, etc.

>     #include <libpq-fe.h>
>     #if defined(PGSQL_FE_VERSION) && PGSQL_FE_VERSION < 20010210
>     # include <postgres.h>
>     #endif

AFAIK there is no need for you to be including <postgres.h> in *any*
Postgres release --- it's supposed to be an internal header file,
not something that client applications need.  Try it with just#include <libpq-fe.h>
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: AW: Re: beta5 ...
Next
From: Tom Lane
Date:
Subject: Re: PHP 4.0.4pl1 / Beta 5