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