Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtCo8-0001ym-QS for pgsql-general@arkaria.postgresql.org; Mon, 11 Feb 2019 14:43:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gtCo7-0002Fo-Fg for pgsql-general@arkaria.postgresql.org; Mon, 11 Feb 2019 14:43:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtCo7-0002Fh-4V for pgsql-general@lists.postgresql.org; Mon, 11 Feb 2019 14:43:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gtCo4-00042a-MR for pgsql-general@lists.postgresql.org; Mon, 11 Feb 2019 14:43:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x1BEhWfa006973; Mon, 11 Feb 2019 09:43:32 -0500 From: Tom Lane To: Niels Jespersen cc: "'pgsql-general@lists.postgresql.org'" Subject: Re: Implementing pgaudit extension on Microsoft Windows In-reply-to: <3967181ED595B445B1E39718204FD4BD0107BC8B49@SRVEXC5.dst.local> References: <3967181ED595B445B1E39718204FD4BD0107BC8B49@SRVEXC5.dst.local> Comments: In-reply-to Niels Jespersen message dated "Mon, 11 Feb 2019 13:23:27 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6971.1549896212.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 11 Feb 2019 09:43:32 -0500 Message-ID: <6972.1549896212@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Niels Jespersen writes: > Copied pgaudit.dll to C:\Program Files\PostgreSQL\11\lib > Copied pgaudit.control and pgaudit--1.3.sql to C:\Program Files\Postgre= SQL\11\share\extension > Set shared_preload_libraries =3D 'pgaudit' > Restart PostgreSQL > Run "CREATE EXTENSION pgaudit;" > alter system set pgaudit.log =3D 'all'; > select pg_reload_conf(); > Nothing enters the log-file from pgaudit. Creating tables (relations, so= rry). Selecting from tables, nothing in the log. Hm, what you describe above looks right. > I can see that alter system set pgaudit.logx =3D 'all'; complains about= "unrecognized configuration parameter", so something is known about pgaud= it. 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