Re: Where can I find the pg_config binary in PostgreSQL 14? - Mailing list pgsql-general

From Oskar Stenberg
Subject Re: Where can I find the pg_config binary in PostgreSQL 14?
Date
Msg-id DB6PR03MB2968C5661344B8C18E32C70CF9AB9@DB6PR03MB2968.eurprd03.prod.outlook.com
Whole thread Raw
In response to Where can I find the pg_config binary in PostgreSQL 14?  (Oskar Stenberg <oskar_stenberg@outlook.com>)
List pgsql-general
Never mind... I found it!

For anyone else that has the same problem:  It had been moved to "/usr/pgsql-14/bin/pg_config"

Sorry for disturbing everyone with this... *Facepalm*

On Fri, 2021-10-01 at 12:12 +0200, Oskar Stenberg wrote:
Hi!

I'm developing an application with PostgreSQL as the database. But during the compilation I need to use pg_config to get the paths of the other PostgreSQL files. But since upgrading to PostgreSQL 14 I can't find it anymore. Earlier I got this binary from libpq-devel (I'm using fedora as my workstation and Rocky Linux/CentOS on the database server) but that package has been replaced by postgresql14-devel according to DNF. But from what I can see it doesn't contain the pg_config binary? It seems to contain some headers for it but not the actual binary. Has it been removed/moved on purpose from the new version? And if so where do I find this functionality now? Is there another way to get those paths in a simple manner? :)


Thanks in advance!

Best Regards
Oskar

pgsql-general by date:

Previous
From: Oskar Stenberg
Date:
Subject: Where can I find the pg_config binary in PostgreSQL 14?
Next
From: Subhrajyoti Senapati
Date:
Subject: Re: Sysbench tests on PG12