#!/bin/sh

trap 'rm -f /tmp/pgauditlogtofile' EXIT

pg_buildext \
  -o shared_preload_libraries=pgaudit,pgauditlogtofile \
  -o pgaudit.log=all \
  -o pgaudit.log_directory=/tmp \
  -o pgaudit.log_filename=pgauditlogtofile \
  installcheck
