[postgis-tickets] [PostGIS] #4770: [raster] Calling st_union() with WINDOW PARTITION crashes server
PostGIS
trac at osgeo.org
Thu Aug 19 14:40:41 PDT 2021
#4770: [raster] Calling st_union() with WINDOW PARTITION crashes server
----------------------+---------------------------
Reporter: Robins | Owner: robe
Type: defect | Status: new
Priority: blocker | Milestone: PostGIS 3.0.4
Component: raster | Version: 3.0.x
Resolution: | Keywords: st_union
----------------------+---------------------------
Comment (by pramsey):
Looking at some windows on numbers it looks like we are doing logically
the same thing as the built-ins, so I guess this fix can go in.
{{{
WITH w AS (
SELECT
ST_Union(g) OVER (PARTITION BY a ORDER BY b) AS g,
Sum(b) OVER (PARTITION BY a ORDER BY b) AS s
FROM (VALUES ('POINT(0 0)'::geometry, 'A0006', 300), ('POINT(1
1)'::geometry, 'A0006', 302)) t(g, a, b)
)
SELECT ST_AsText(g), s FROM w;
st_astext | s
---------------------+-----
POINT(0 0) | 300
MULTIPOINT(0 0,1 1) | 602
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4770#comment:10>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list