Get extensions directory programmatically in another Makefile

Поиск
Список
Период
Сортировка
От Igor Stassiy
Тема Get extensions directory programmatically in another Makefile
Дата
Msg-id CAKVOjezO1oPP5V0yVOZ-7pEYG__74CyAnncNnjQhAXcGHe1-Jw@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Hello,

This might seem like an XY problem, but I need to solve it. 

I am using pgxs to install an extension but I need to refer to the location of the installation directory in another Makefile. 

How safe is it to assume that MODULE_PATHNAME that I use for CREATE FUNCTION ... AS 'MODULE_PATHNAME'

can be used as 

PG_CONFIG = pg_config
PGXS_PKGLIBDIR = $(shell $(PG_CONFIG) --pkglibdir)
PGXS_MODULESDIR = $(shell $(PG_CONFIG) --sharedir)/extension

in another Makefile?

Thanks,
Igor

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

Предыдущее
От: Prajilal KP
Дата:
Сообщение: Re: Reg: PostgreSQL Server "base/data" recovery
Следующее
От: Steven Erickson
Дата:
Сообщение: Re: Name spacing functions and stored procedures