I am installing pgaudit and have error in the varlena.h file. error" conflicting type for 'varstr_cmp'
is anyone install pgaudit without error? please feed me in.
Clone the PostgreSQL repository:
git clone https://github.com/postgres/postgres.git
Checkout REL_10_STABLE branch:
git checkout REL_10_STABLE
./configure make install -s
Change to the contrib directory:
Clone the pgAudit extension:
git clone https://github.com/pgaudit/pgaudit.git
Change to pgAudit directory:
Build pgAudit and run regression tests:
make -s check
I have the error on step make -s check.
Why do you want to install postgres using source code? Any specific reason.
IIRC, EDB doesn't support pgaudit. In EPAS, we have edb_audit which enables the auditing capbility.
If you are not using EPAS, then please use RPMs for PostgreSQL. PostgreSQL yum repository has pgaudit extension.