title: Build set_user Extension Module on PostgreSQL using Windows
body: <p>Can anyone advise on the steps to configure set_user extension module in PostgreSQL? I am using Windows machine. I tried using Cygwin to build and managed to generate set_user.dll, but have issues to start the PostgreSQL. Error message in Event Viewer: 2021-10-25 18:50:06.013 +08 [27964] FATAL:  could not load library &quot;C:/Program Files/PostgreSQL/13/lib/set_user.dll&quot;: The specified procedure could not be found.</p>
  <p>Download source code: <a href="https://github.com/pgaudit/set_user" rel="nofollow noreferrer">https://github.com/pgaudit/set_user</a></p>
  <p>The steps I execute in Cygwin to generate the set_user.dll:</p>
  <pre><code>make USE_PGXS=1
  make USE_PGXS=1 install
  </code></pre>
  <p>After I got the set_user.dll,</p>
  <ol>
  <li>I copied the set_user.dll inside the C:\Program Files\PostgreSQL\13\lib</li>
  <li>Then I copied the set_user.control and set_user--3.0.sql from the github source code to C:\Program Files\PostgreSQL\13\share\extension</li>
  <li>Then in the postgresql.conf, I have added <strong>shared_preload_libraries = 'pgaudit,set_user'</strong> then restart postgresql service, but failed to start the postgresql service.</li>
  </ol>