<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>A strange thing is that this recursive query got stopped by the following error.</div><div><br></div><div>ERROR: invalid memory alloc request size 1073741824</div><div><br></div><div>Regards,</div><div><br></div><div>David</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 30 Dec 2021 at 23:36, Stephen V. Mather <<a href="mailto:svm@clevelandmetroparks.com">svm@clevelandmetroparks.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>
<p>Hi David,</p>
<p>This is a good example. I have modified this to walk networks
before, and it's a minimal and understandable example:</p>
<p><a href="http://blog.cleverelephant.ca/2010/07/network-walking-in-postgis.html" target="_blank">http://blog.cleverelephant.ca/2010/07/network-walking-in-postgis.html</a></p>
<p>There may be some better ways to do this, as the postgres tooling
has changed quite a bit. The use of a function may be precluded by
some modern fancy join type. Others can speak better to that than
I can these days.<br>
</p>
<p>Also, if you don't mind installing one more thing, pgrouting will
do network traversal much more efficiently than a <i>WITH
RECURSIVE</i> network traversal:</p>
<p><a href="https://pgrouting.org/" target="_blank">https://pgrouting.org/</a></p>
<p><br>
</p>
<p>Cheers,</p>
<p>Best,</p>
<p>Steve<br>
</p>
<p><br>
</p>
<div>On 12/30/21 4:13 PM, Shaozhong SHI
wrote:<br>
</div>
<blockquote type="cite">
<p><strong><font color="FF0000"><span style="font-size:9px"><span style="font-size:13px">WARNING: This email originated
outside of Cleveland Metroparks. DO NOT CLICK links or
attachments unless you recognize the sender and know the
content is safe.</span></span></font></strong></p>
<div dir="ltr">In hydrological network, how to trace network from
each source node and check whether the trace can reach the sea?
<div><br>
</div>
<div>Any examples?</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>David</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
postgis-users mailing list
<a href="mailto:postgis-users@lists.osgeo.org" target="_blank">postgis-users@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a>
</pre>
</blockquote>
</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><br>
</blockquote></div></div>