"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Fri, Oct 20, 2017 at 1:12 PM, rakeshkumar464 <rakeshkumar464(at)outlook(dot)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.
regards, tom lane