[SCM] PostGIS branch stable-3.4 updated. 3.4.2-39-gd4306cb93

git at osgeo.org git at osgeo.org
Fri May 31 15:18:42 PDT 2024


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, stable-3.4 has been updated
       via  d4306cb9351d6d343fdea702c075911450e44ec6 (commit)
      from  58bcf7f1c656b8c61b05a390335ef0ccd42dc59e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d4306cb9351d6d343fdea702c075911450e44ec6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Fri May 31 14:40:35 2024 -0700

    Only run pgaudit extension install test for PgSQL >= 15, references #5611

diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in
index f011f3695..81b69789f 100644
--- a/postgis/postgis.sql.in
+++ b/postgis/postgis.sql.in
@@ -68,12 +68,19 @@ $$ LANGUAGE 'plpgsql';
 DO $$
 DECLARE
 	pgalog text;
+	pgvernum integer;
 BEGIN
+	SHOW server_version_num INTO pgvernum;
+	IF pgvernum >= 150000
+	THEN
+		RAISE DEBUG 'pgsql version % >= 150000, skipping pgaudit checks', pgvernum;
+		RETURN;
+	END IF;
 	SHOW pgaudit.log INTO pgalog;
 	RAISE DEBUG 'pgaudit is installed, pgaudit.log is set to ''%''', pgalog;
 	IF pg_catalog.lower(pgalog) != 'none'
 	THEN
-		RAISE EXCEPTION 'PostGIS installation stopped: pgaudit.log is set to ''%''. Set pgaudit.log to ''none'' before installing PostGIS. You may re-enable pgaudit after installation is complete.', pgalog;
+		RAISE EXCEPTION 'PostGIS installation stopped: pgaudit.log is set to ''%''. SET pgaudit.log = ''none'' before installing PostGIS. You may re-enable pgaudit after installation is complete.', pgalog;
 	END IF;
 EXCEPTION
 	WHEN undefined_object THEN

-----------------------------------------------------------------------

Summary of changes:
 postgis/postgis.sql.in | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list