[SCM] PostGIS branch stable-3.6 updated. 3.6.4-62-g8f0265779

git at osgeo.org git at osgeo.org
Tue Jul 7 04:13:06 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, stable-3.6 has been updated
       via  8f0265779255ca22f440e383973ce8b6618ef55c (commit)
      from  ae1c72fa7c510767dff7be53ce0653170b7876a1 (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 8f0265779255ca22f440e383973ce8b6618ef55c
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Tue Jul 7 15:07:59 2026 +0400

    upgrade: escape version regex literals
    
    Use explicit escape string syntax for the version parsing regular expressions emitted by create_upgrade.pl. This keeps downgrade checks quiet and parser-stable when standard_conforming_strings is off.
    
    Closes #6094 for PostGIS 3.6
    
    Closes https://github.com/postgis/postgis/pull/1158

diff --git a/NEWS b/NEWS
index 0dbd1265e..cecfe2fad 100644
--- a/NEWS
+++ b/NEWS
@@ -34,6 +34,8 @@ PostGIS 3.6.5
   cancellation state (Darafei Praliaskouski)
 - #5948, [topology] Prevent MakeTopologyPrecise from erasing edges when
           grid size exceeds their extent (Darafei Praliaskouski)
+- #6094, [upgrade] Avoid legacy string literal warnings in downgrade checks
+  with standard_conforming_strings off (Darafei Praliaskouski)
 
 
 PostGIS 3.6.4
diff --git a/utils/create_upgrade.pl b/utils/create_upgrade.pl
index 38826cfe6..2f55394ed 100644
--- a/utils/create_upgrade.pl
+++ b/utils/create_upgrade.pl
@@ -1022,11 +1022,11 @@ BEGIN
     ) SELECT
       upgraded as scripts_upgraded,
       installed as scripts_installed,
-      pg_catalog.substring(upgraded, '([0-9]+)\.')::int * 100 +
-      pg_catalog.substring(upgraded, '[0-9]+\.([0-9]+)(\.|$)')::int
+      pg_catalog.substring(upgraded, E'([0-9]+)\\.')::int * 100 +
+      pg_catalog.substring(upgraded, E'[0-9]+\\.([0-9]+)(\\.|$)')::int
         as version_to_num,
-      pg_catalog.substring(installed, '([0-9]+)\.')::int * 100 +
-      pg_catalog.substring(installed, '[0-9]+\.([0-9]+)(\.|$)')::int
+      pg_catalog.substring(installed, E'([0-9]+)\\.')::int * 100 +
+      pg_catalog.substring(installed, E'[0-9]+\\.([0-9]+)(\\.|$)')::int
         as version_from_num,
       installed ~ 'dev|alpha|beta'
         as version_from_isdev
@@ -1062,4 +1062,3 @@ END
 $$
 LANGUAGE 'plpgsql';
 
-

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

Summary of changes:
 NEWS                    | 2 ++
 utils/create_upgrade.pl | 9 ++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list