diff --git a/contrib/pg_audit/pg_audit.c b/contrib/pg_audit/pg_audit.c index 384fc074814002300e3fdf0131a00b761135dad7..558a96a471a6806fb1918c108bc1dabcea8694c0 100644 --- a/contrib/pg_audit/pg_audit.c +++ b/contrib/pg_audit/pg_audit.c @@ -1728,11 +1728,6 @@ assign_pg_audit_log_level(const char *newVal, void *extra) void _PG_init(void) { - if (IsUnderPostmaster) - ereport(ERROR, - (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), - errmsg("pg_audit must be loaded via shared_preload_libraries"))); - /* Define pg_audit.log */ DefineCustomStringVariable( "pg_audit.log",