Re: Install pgAudit extension - Mailing list pgsql-general

From Artur Zakirov
Subject Re: Install pgAudit extension
Date
Msg-id ecf53b72-0840-8ec1-3ab3-b2fe7f7463c5@postgrespro.ru
Whole thread Raw
In response to Install pgAudit extension  (Dylan Luong <Dylan.Luong@unisa.edu.au>)
List pgsql-general
On 06.12.2016 08:44, Dylan Luong wrote:
> Hi
>
>
>
> I need some advice on installing the pgAudit extension as I am new to
> PostgreSQL extenstions.
>

You can use PGXS. With PGXS you don't need postgres's source code, only
source code of pgaudit. But you need installed PostgreSQL. Here is the
example:

1 - unzip pgaudit to a pgaudit directory
2 - go to a pgaudit directory:

cd pgaudit

3 - compile and install:

make USE_PGXS=1
make USE_PGXS=1 install

It is assumed that pg_config is in your $PATH variable. If it is not
then you can run:

make USE_PGXS=1 PG_CONFIG=<path_to_postgres_bin>/pg_config
make USE_PGXS=1 PG_CONFIG=<path_to_postgres_bin>/pg_config install

--
Artur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company


pgsql-general by date:

Previous
From: Achilleas Mantzios
Date:
Subject: Re: Streaming Replication delay getting bigger
Next
From: Michael Paquier
Date:
Subject: Re: Overwrite pg_catalog?