libpq.so not found in pg_config --libdir path

As the title says, the library

libpq.so

is not in the path given by

pg_config --libdir

. I install

postgresql posqtgresql-devel

which provides the package libpq5 which in turn installs the libpq.so.

$ pg_config --libdir
    /usr/lib/postgresql10/lib64
    $ find /usr/ -name libpq.so
    /usr/lib64/libpq.so

Our applications rely on the path given by

pg_config --libdir

to look for libpq.so but it fails. Is this some problem with OpenSUSE package management or is it that we shouldn’t be using pg_config for this purpose?

I guess it depends on your code and whether you’re running as root.
The location of that file should easily be found by anything running in a root context…

I guess the question is what you might want to run, and particularly if it involves custom code that wouldn’t run with elevated permissions?

TSU