pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Niels Jespersen <NJN@dst.dk>
Cc: 'pgsql-general@lists.postgresql.org' <pgsql-general@lists.postgresql.org>
Subject: Re: Implementing pgaudit extension on Microsoft Windows
Date: Mon, 11 Feb 2019 09:43:32 -0500
Message-ID: <6972.1549896212@sss.pgh.pa.us> (raw)
In-Reply-To: <3967181ED595B445B1E39718204FD4BD0107BC8B49@SRVEXC5.dst.local>
References: <3967181ED595B445B1E39718204FD4BD0107BC8B49@SRVEXC5.dst.local>

Niels Jespersen <NJN@dst.dk> writes:
> Copied pgaudit.dll to C:\Program Files\PostgreSQL\11\lib
> Copied  pgaudit.control and pgaudit--1.3.sql to C:\Program Files\PostgreSQL\11\share\extension
> Set shared_preload_libraries = 'pgaudit'
> Restart PostgreSQL
> Run "CREATE EXTENSION pgaudit;"
> alter system set pgaudit.log = 'all';
> select pg_reload_conf();

> Nothing enters the log-file from pgaudit. Creating tables (relations, sorry). Selecting from tables, nothing in the log.

Hm, what you describe above looks right.

> I can see that alter system set pgaudit.logx = 'all';  complains about "unrecognized configuration parameter", so something is known about pgaudit.

No, that means the postmaster *doesn't* have pgaudit loaded.

The fact that CREATE EXTENSION worked implies that you've got the library
correctly built, so I think this must boil down to the
"shared_preload_libraries" setting not having taken.  You could
cross-check that by seeing what "SHOW shared_preload_libraries"
prints.

I wonder if you forgot to remove the comment marker (#) on the
shared_preload_libraries line?

			regards, tom lane




view thread (9+ messages)  latest in thread

Message-ID: <6972.1549896212@sss.pgh.pa.us>
Permalink:  ../6972.1549896212@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6972.1549896212@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, NJN@dst.dk
  Subject: Re: Implementing pgaudit extension on Microsoft Windows
  In-Reply-To: <6972.1549896212@sss.pgh.pa.us>
  References: <3967181ED595B445B1E39718204FD4BD0107BC8B49@SRVEXC5.dst.local> <6972.1549896212@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox