<div dir="ltr">Don't think there is a -> operator in PostGIS?   <div><br></div><div>The Timescale function pipelines are a clever trick, but seems a bit ugly to me under the covers.  The -> is apparently building building and then evaluating its own expression tree, which seems like a huge duplication of effort.  </div><div><br></div><div>It also seems questionable to use this as instead of a pure SQL approach, since that removes any chance of using the SQL engine to optimize the query.  Granted the SQL syntax is not as readable as it could be.</div><div><br></div><div>For sure deeply nested function call chains are hard to read and modify.  And we see this in PostGIS a lot.  It would be very nice if Postgres had a function pipeline operator built in, like Elixir's: <a href="https://elixirschool.com/en/lessons/basics/pipe_operator">https://elixirschool.com/en/lessons/basics/pipe_operator</a> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 19, 2021 at 3:51 PM Bruce Rindahl <<a href="mailto:bruce.rindahl@gmail.com">bruce.rindahl@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="auto">This looks interesting to me:<div dir="auto"><a href="https://blog.timescale.com/blog/function-pipelines-building-functional-programming-into-postgresql-using-custom-operators/amp/" target="_blank">https://blog.timescale.com/blog/function-pipelines-building-functional-programming-into-postgresql-using-custom-operators/amp/</a><br></div><div dir="auto">But will their definition of an -> operator conflict with similar postgis operators?</div><div dir="auto">Just curious </div></div>
_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a><br>
</blockquote></div>