[SCM] PostGIS branch master updated. 3.7.0beta1-274-g531e51fc93

git at osgeo.org git at osgeo.org
Sun Aug 9 09:44:55 PDT 2026


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, master has been updated
       via  531e51fc93346b85c0eb97fe5dfb20a2f6cb630e (commit)
       via  a668bbef629d771625d50ee905bcccf672a2c297 (commit)
      from  ff62ffc93adaccbee6aed555ec2e83561d4da1fa (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 531e51fc93346b85c0eb97fe5dfb20a2f6cb630e
Merge: ff62ffc93a a668bbef62
Author: Darafei Praliaskouski <komzpa at gmail.com>
Date:   Sun Aug 9 09:44:53 2026 -0700

    Merge pull request 'regress: avoid setup hooks during dump restore' (!678) from Komzpa/postgis:fix/regress-hook-dump-restore-20260809 into master
    
    The regression harness runs `--after-create-db-script` hooks before the initial
    PostGIS installation.  A dump/restore run creates a second empty database, and
    running those hooks there as well can conflict with objects restored from the
    dump.
    
    Run the setup hooks only for the initial database.  The restored database stays
    empty until the dump is loaded, while the initial install and upgrade paths keep
    their existing hook coverage.
    
    Reviewed-on: https://gitea.osgeo.org/postgis/postgis/pulls/678


commit a668bbef629d771625d50ee905bcccf672a2c297
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Sun Aug 9 20:28:30 2026 +0400

    regress: skip setup hooks before dump restore

diff --git a/regress/run_test.pl b/regress/run_test.pl
index 622d6d5645..119956f6c9 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -1552,12 +1552,6 @@ sub create_db
 
 	return 0 if system($createcmd);
 
-	foreach my $hook (@OPT_HOOK_AFTER_CREATE_DB)
-	{
-		print "Running after-create-db-script $hook\n";
-		die unless load_sql_file($hook, 1);
-	}
-
 	return 1;
 }
 
@@ -1568,6 +1562,12 @@ sub create_spatial
 
     $rv = create_db();
 
+    foreach my $hook (@OPT_HOOK_AFTER_CREATE_DB)
+    {
+        print "Running after-create-db-script $hook\n";
+        die unless load_sql_file($hook, 1);
+    }
+
     # Count database objects before installing anything
     $OBJ_COUNT_PRE = count_db_objects();
 

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

Summary of changes:
 regress/run_test.pl | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list