>>>>> "Rich" == Rich Shepard <rshepard(at)appl-ecosys(dot)com> writes:
Rich> Yes, pg_config is present but pointing to the wrong directory:
Rich> # /usr/lib/postgresql/10.3/bin/pg_config --sharedir
Rich> /usr/share/postgresql-10.2
What this says is that you somehow have a pg 10.3 binary which has been
compiled with ./configure --datadir=/usr/share/postgresql-10.2
which seems, to say the least, somewhat odd.
pg_config isn't used by the postgres binary to find paths, so "fixing"
it wouldn't help. The same paths that were compiled into pg_config are
compiled into the postgres binary, and pg_config and postgres contain
the same relocation logic.
--
Andrew (irc:RhodiumToad)