Re: Get version info - Mailing list pgsql-general

From Igor Korot
Subject Re: Get version info
Date
Msg-id CA+FnnTyQT3=ieA=1QjprTg3DsP73WbteQX3gosWTYho9rFD-yw@mail.gmail.com
Whole thread
In response to Re: Get version info  (rob stone <floriparob@tpg.com.au>)
Responses Re: Get version info
List pgsql-general
Hi, Rob,

On Sun, Jul 5, 2026 at 3:18 AM rob stone <floriparob@tpg.com.au> wrote:
>
> On Sun, 2026-07-05 at 01:32 -0500, Igor Korot wrote:
> > Hi, ALL,
> > Google recommends using pg-config.
> >
> > However, some distro prefer to use pkg-config and don't even include
> > local configuration file.
> >
> > Is this file located everywhere and if not - how do I check it inside
> > configure.ac?
> >
> > Thank you.
> >
>
>
> See chapter 9.27.11, not Mr. Google.
>
> select version();
>
> PostgreSQL 18.4 (Debian 18.4-1+b1) on x86_64-pc-linux-gnu, compiled by
> x86_64-linux-gnu-gcc (Debian 15.3.0-1) 15.3.0, 64-bit
> (1 row)
>
>
LL,
> > Google recommends using pg-config.
> >
> > However, some distro prefer to use pkg-config and don't even include
> > local configuration file.
> >
> > Is this file located everywhere and if not - how do I check it inside
> > configure.ac?
> >
> > Thank you.
> >
>
>
> See chapter 9.27.11, not Mr. Google.

igor@WaylandGnome ~/dbhandler/Debug/dbhandler $ select version()
bash: syntax error near unexpected token `('

I need to check it inside configure.ac, not inside psql or any other PG client.

Thank you.



pgsql-general by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Get version info
Next
From: Igor Korot
Date:
Subject: Re: Get version info