[SCM] PostGIS branch master updated. 3.6.0rc2-696-g058ffbeab

git at osgeo.org git at osgeo.org
Tue Jun 30 22:13:20 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  058ffbeab6ee29678b331724488cfd4c7e5d7e84 (commit)
       via  f46ed7d7a8be7bc25d2338d18d2c393d33125b63 (commit)
      from  b9fc9d0e46257f3d5843b289ab7e2b7a4d134f8c (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 058ffbeab6ee29678b331724488cfd4c7e5d7e84
Merge: b9fc9d0e4 f46ed7d7a
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Wed Jul 1 09:08:44 2026 +0400

    Merge pull request https://github.com/postgis/postgis/pull/895
    
    libpgcommon: qualify pg_class in SRID lookup


commit f46ed7d7a8be7bc25d2338d18d2c393d33125b63
Author: Darafei Praliaskouski <me at komzpa.net>
Date:   Tue Jun 16 23:18:59 2026 +0400

    libpgcommon: qualify pg_class in SRID lookup

diff --git a/NEWS b/NEWS
index a636077cb..b2f37c2e4 100644
--- a/NEWS
+++ b/NEWS
@@ -160,6 +160,8 @@ To take advantage of all postgis_sfcgal extension features SFCGAL 2.3+ is needed
           for extension upgrade (Darafei Praliaskouski)
  - #6080, Avoid out-of-bounds hex WKB lookup for high-bit input bytes
           (Darafei Praliaskouski)
+ - GH-895, Qualify pg_class lookup during SRID/PROJ validation
+          (Darafei Praliaskouski)
  - #4828, geometry_columns handles NOT VALID SRID checks without errors (Darafei Praliaskouski)
  - #6048, [raster] ST_Clip no longer crashes when clipping sparse band
           selections (Darafei Praliaskouski)
diff --git a/libpgcommon/lwgeom_transform.c b/libpgcommon/lwgeom_transform.c
index fdb60b34a..305bebaa1 100644
--- a/libpgcommon/lwgeom_transform.c
+++ b/libpgcommon/lwgeom_transform.c
@@ -184,10 +184,11 @@ GetProjStringsSPI(int32_t srid)
 	 * resolve standard codes from its own database.
 	 */
 	Oid nsp_oid = POSTGIS_CONSTANTS ? POSTGIS_CONSTANTS->install_nsp_oid : InvalidOid;
-	snprintf(proj_spi_buffer, spibufferlen,
-	         "SELECT 1 FROM pg_class "
-	         "WHERE relname = 'spatial_ref_sys' AND relnamespace = %u",
-	         nsp_oid);
+	snprintf(proj_spi_buffer,
+		 spibufferlen,
+		 "SELECT 1 FROM pg_catalog.pg_class "
+		 "WHERE relname = 'spatial_ref_sys' AND relnamespace = %u",
+		 nsp_oid);
 	spi_result = SPI_execute(proj_spi_buffer, true, 1);
 	bool srs_exists = (spi_result == SPI_OK_SELECT && SPI_processed > 0);
 

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

Summary of changes:
 NEWS                           | 2 ++
 libpgcommon/lwgeom_transform.c | 9 +++++----
 2 files changed, 7 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list