Re: How to declare PG version for compiling extensions.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to declare PG version for compiling extensions.
Дата
Msg-id 82978.1540216976@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to declare PG version for compiling extensions.  (GPT <gptmailinglists@gmail.com>)
Список pgsql-general
GPT <gptmailinglists@gmail.com> writes:
> Both PG versions 10.5 and 11 are installed.
> I have been trying to compile extensions for PG11 by using:
> PATH=/.../11/bin:PATH make USE_...
> but unfortunately PG10 is always being used (the `make` output always
> shows PG10 and refers to `pg_config`).

> 1) Does it have to do with pg_config?

If you're using PGXS, then yes, your makefile should be querying
pg_config to find out where Postgres' headers etc are installed.
You might want to check whether "pg_config --pgxs" points to the
correct place.  Also make sure your makefile is indeed doing
something like

PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)

and not just hard-wiring where to look.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: How to declare PG version for compiling extensions.
Следующее
От: Scot Kreienkamp
Дата:
Сообщение: RE: Replication question