From: Regina Obe Date: Tue, 22 Aug 2017 14:43:42 +0000 (+0000) Subject: update to use more efficient lateral syntax X-Git-Tag: 2.4.0beta1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e9ef12ac22c0dcf0357ae6242ece651de3679f4;p=postgis update to use more efficient lateral syntax git-svn-id: http://svn.osgeo.org/postgis/trunk@15567 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_raster.xml b/doc/reference_raster.xml index 4d49c2544..92fbb9961 100644 --- a/doc/reference_raster.xml +++ b/doc/reference_raster.xml @@ -2000,7 +2000,7 @@ WHERE rid=35; Create 16 tiles in a 4x4 grid to cover the WGS84 area from upper left corner (22, 77) to lower right corner (55, 33). Examples - -SELECT x, y, val, ST_AsText(geom) FROM (SELECT (ST_PixelAsCentroids(rast, 1)).* FROM dummy_rast WHERE rid = 2) foo; + --LATERAL syntax requires PostgreSQL 9.3+ +SELECT x, y, val, ST_AsText(geom) + FROM (SELECT dp.* FROM dummy_rast, LATERAL ST_PixelAsCentroids(rast, 1) AS dp WHERE rid = 2) foo; x | y | val | st_astext ---+---+-----+-------------------------------- 1 | 1 | 253 | POINT(3427927.775 5793243.975) @@ -12918,11 +12919,11 @@ FROM (SELECT ST_SetRotation(rast, 0.1, 0.1) As rast Examples - + -- this syntax requires PostgreSQL 9.3+ SELECT val, ST_AsText(geom) As geomwkt FROM ( -SELECT (ST_DumpAsPolygons(rast)).* -FROM dummy_rast +SELECT dp.* +FROM dummy_rast, LATERAL ST_DumpAsPolygons(rast) AS dp WHERE rid = 2 ) As foo WHERE val BETWEEN 249 and 251