Compare commits

...

No commits in common. "c8-stream-12" and "stream-postgresql-13-rhel-8.10.0" have entirely different histories.

5 changed files with 43 additions and 8 deletions

6
.gitignore vendored
View File

@ -1 +1,5 @@
SOURCES/pgaudit-1.4.0.tar.gz
/pgaudit-1.2.0.tar.gz
/pgaudit-1.3.0.tar.gz
/pgaudit-1.3.1.tar.gz
/pgaudit-1.4.0.tar.gz
/pgaudit-1.5.0.tar.gz

View File

@ -1 +1 @@
ea085fbf227b5c461331ab33b99579f37db299a6 SOURCES/pgaudit-1.4.0.tar.gz
8429125e8f70fcaa2c2f5a0e22b910a4afb821a4 pgaudit-1.5.0.tar.gz

View File

@ -0,0 +1,29 @@
diff -rup pgaudit-1.3.0-orig/pgaudit.c pgaudit-1.3.0/pgaudit.c
--- pgaudit-1.3.0-orig/pgaudit.c 2019-07-26 08:32:56.173668080 +0200
+++ pgaudit-1.3.0/pgaudit.c 2019-07-26 10:56:47.956677102 +0200
@@ -13,6 +13,7 @@
#include "access/htup_details.h"
#include "access/sysattr.h"
#include "access/xact.h"
+#include "access/relation.h"
#include "catalog/catalog.h"
#include "catalog/objectaccess.h"
#include "catalog/pg_class.h"
@@ -994,7 +995,7 @@ log_select_dml(Oid auditOid, List *range
relOid = rte->relid;
rel = relation_open(relOid, NoLock);
- if (!auditLogCatalog && IsSystemNamespace(RelationGetNamespace(rel)))
+ if (!auditLogCatalog && IsCatalogNamespace(RelationGetNamespace(rel)))
{
relation_close(rel, NoLock);
continue;
@@ -1206,7 +1207,7 @@ log_function_execute(Oid objectId)
* Logging execution of all pg_catalog functions would make the log
* unusably noisy.
*/
- if (IsSystemNamespace(proc->pronamespace))
+ if (IsCatalogNamespace(proc->pronamespace))
{
ReleaseSysCache(proctup);
return;

View File

@ -1,6 +1,6 @@
Name: pgaudit
Version: 1.4.0
Release: 5%{?dist}
Version: 1.5.0
Release: 1%{?dist}
Summary: PostgreSQL Audit Extension
License: PostgreSQL
@ -9,8 +9,8 @@ URL: http://pgaudit.org
Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: postgresql-server-devel >= 11, postgresql-server-devel <= 13
BuildRequires: libpq-devel
BuildRequires: postgresql-server-devel >= 13, postgresql-server-devel < 14
BuildRequires: libpq-devel >= 13, libpq-devel < 14
BuildRequires: openssl-devel
@ -53,8 +53,9 @@ set -ex
%changelog
* Thu Jun 03 2021 Patrik Novotný <panovotn@redhat.com> - 1.4.0-5
- Fix build requires
* Wed Nov 18 2020 Honza Horak <hhorak@redhat.com> - 1.5.0-1
- Update to version 1.5.0
Related: #1855776
* Wed Nov 20 2019 Patrik Novotný <panovotn@redhat.com> - 1.4.0-4
- Bump release for rebuild against libpq-12.1-3

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (pgaudit-1.5.0.tar.gz) = 09195657de5e741d4632957f7c320de5ff64421a9f500b6ed26c6b8211bd1d541fcfc681c5a93a526b1047433d8fc2f434346eecff4ed07bfd3067c82e0451bc