Re: How to find out extension directory

From: Melvin Davidson <melvin6925(at)gmail(dot)com>
To: rakeshkumar464 <rakeshkumar464(at)outlook(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to find out extension directory
Date: 2017-10-20 20:56:31
Message-ID: CANu8FiyUPAn=ux4LigAobRTmM0OWFVT-nnnAUM_eZeAuMfWOQg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 20, 2017 at 4:12 PM, rakeshkumar464 <rakeshkumar464(at)outlook(dot)com>
wrote:

> I am documenting on automating installation of pgaudit extension for
> containers. On my laptop I see that the directory where the files
> pgaudit.control and pgaudit--1.2.sql needs to be present is
>
> /usr/share/postgresql/10/extension.
>
> How do I know beforehand where the dir path is ?
>
>
>
>
> --
> Sent from: http://www.postgresql-archive.org/PostgreSQL-general-
> f1843780.html
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

> How do I know beforehand where the dir path is ?

That would depend on the O/S, but it is not really necessary to know the
path, as PostgreSQL will know it.
Simply establish a connection to the database you want to create the
extension in and do

*CREATE EXTENSION extention_name;*

https://www.postgresql.org/docs/10/static/sql-createextension.html

--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2017-10-20 20:57:34 Re: How to find out extension directory
Previous Message rakeshkumar464 2017-10-20 20:12:31 How to find out extension directory