[postgis-tickets] r16249 - Back out SPI_execute change, it causes a crash in my parallel test case

Paul Ramsey pramsey at cleverelephant.ca
Wed Jan 10 06:47:58 PST 2018


Author: pramsey
Date: 2018-01-10 06:47:57 -0800 (Wed, 10 Jan 2018)
New Revision: 16249

Modified:
   trunk/libpgcommon/lwgeom_transform.c
Log:
Back out SPI_execute change, it causes a crash in my parallel test case


Modified: trunk/libpgcommon/lwgeom_transform.c
===================================================================
--- trunk/libpgcommon/lwgeom_transform.c	2018-01-10 14:01:25 UTC (rev 16248)
+++ trunk/libpgcommon/lwgeom_transform.c	2018-01-10 14:47:57 UTC (rev 16249)
@@ -338,7 +338,8 @@
 
 	/* Execute the lookup query */
 	snprintf(proj4_spi_buffer, 255, "SELECT proj4text FROM spatial_ref_sys WHERE srid = %d LIMIT 1", srid);
-	spi_result = SPI_execute(proj4_spi_buffer, true, 1);
+	// spi_result = SPI_execute(proj4_spi_buffer, true, 1);
+	spi_result = SPI_exec(proj4_spi_buffer, 1);
 
 	/* Read back the PROJ4 text */
 	if (spi_result == SPI_OK_SELECT && SPI_processed > 0)



More information about the postgis-tickets mailing list