PostgreSQL(PostGIS): Calling ST_Intersects for result of WITH clause

I have a set of linked tables. Last of them has geometry column. I need to get data from this set of tables by some criteria (including geometry intersection). The idea is to apply intersection analysis on the last step to speed up query. So I do filtration by all criteria except intersection: SELECT table1.someColumn,… Read More PostgreSQL(PostGIS): Calling ST_Intersects for result of WITH clause