Re: [GENERAL] How to find out extension directory - Mailing list pgsql-general

From Joe Conway
Subject Re: [GENERAL] How to find out extension directory
Date
Msg-id d175808a-b133-08d0-f17d-3ff2520ab1d7@joeconway.com
Whole thread Raw
In response to Re: [GENERAL] How to find out extension directory  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On 10/20/2017 02:10 PM, Tom Lane wrote:
> "David G. Johnston" <david.g.johnston@gmail.com> writes:
>> On Fri, Oct 20, 2017 at 1:12 PM, rakeshkumar464 <rakeshkumar464@outlook.com>
>> wrote:
>>> How do I know beforehand where the dir path is ?
>
>> I think pg_config (
>> https://www.postgresql.org/docs/current/static/app-pgconfig.html ) is what
>> you are looking for.
>
> specifically, you can assume it's the "extension" subdirectory of
> whatever SHAREDIR is.  "pg_config --sharedir" will tell you that.

And starting with pg 9.6 you can also do:

test=# select * from pg_config where name = 'SHAREDIR';  name   |               setting
----------+--------------------------------------SHAREDIR | /usr/local/pgsql-REL_10_STABLE/share
(1 row)


--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [GENERAL] How to find out extension directory
Next
From: Israel Brewster
Date:
Subject: [GENERAL] Weird performance difference