<div dir="ltr">Currently ST_ClusterIntersecting is an aggregate function, not a window function.  So unlike the other window functions it's not easy to do what you want.  It will likely get rewritten as a window function soon, hopefully.<div><br></div><div>In the meantime, you might be able to achieve what you want by using ST_Dump and then joining back to the source table using ST_Equals.  This won't be vey performant, of course.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 16, 2019 at 9:57 AM Eugene Podshivalov <<a href="mailto:yaugenka@gmail.com">yaugenka@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,</div><div dir="ltr"><div>Is it possible to aggregate other columns when ST_ClusterIntersecting function is used? Particularly I would like to get arrays of IDs corresponding to the geometries in each aggregated geometry collection.</div><div><br></div><div>Link to the function definition page</div><div><a href="http://postgis.net/docs/ST_ClusterIntersecting.html" target="_blank">http://postgis.net/docs/ST_ClusterIntersecting.html</a>  <br></div><div><br></div><div>Thanks,</div><div>Eugene</div></div></div></div>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a></blockquote></div>