From: Paul Ramsey Date: Wed, 10 Jan 2018 14:01:25 +0000 (+0000) Subject: Change to SPI_execute so we can run SRS query in 'read_only' mode and avoid transacti... X-Git-Tag: 2.5.0alpha~209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fb6324d87ec077e0f78be495825b6fd37caf231;p=postgis Change to SPI_execute so we can run SRS query in 'read_only' mode and avoid transaction issues that break parallel mode git-svn-id: http://svn.osgeo.org/postgis/trunk@16248 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/libpgcommon/lwgeom_transform.c b/libpgcommon/lwgeom_transform.c index 8d9768eaa..72fc2e450 100644 --- a/libpgcommon/lwgeom_transform.c +++ b/libpgcommon/lwgeom_transform.c @@ -338,7 +338,7 @@ char* GetProj4StringSPI(int srid) /* Execute the lookup query */ snprintf(proj4_spi_buffer, 255, "SELECT proj4text FROM spatial_ref_sys WHERE srid = %d LIMIT 1", srid); - spi_result = SPI_exec(proj4_spi_buffer, 1); + spi_result = SPI_execute(proj4_spi_buffer, true, 1); /* Read back the PROJ4 text */ if (spi_result == SPI_OK_SELECT && SPI_processed > 0)