1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2025-03-20 04:46:22 +09:00
vervis/src/Database/Persist/Sql
fr33domlover 0904abd7e6 SQL: Use single recursive CTE reference in undirected traversal
At least in PostgreSQL, at most one reference is allowed. My undirected
recursion code used a UNION of two recursive steps, one for each
direction. That is invalid, so instead I define a CTE that's a union of
the edges and their reverse, and do a single recursion step on that CTE
instead of on the edge table itself.
2016-07-30 07:28:46 +00:00
..
Graph SQL: Use single recursive CTE reference in undirected traversal 2016-07-30 07:28:46 +00:00
Local.hs Start big route change, doesn't build yet 2016-05-23 12:24:14 +00:00