4 ms·
I love the JSON-as-a-parser hack. In TSQL (MS SQL Server) it would run into the CTE recursion limit; I'm not sure if Postgres is any different in this regard.
by zamalek 7y ago
I love the JSON-as-a-parser hack.
In TSQL (MS SQL Server) it would run into the CTE recursion limit; I'm not sure if Postgres is any different in this regard. I suspect that this could be solved and optimized with a WHILE loop and, most likely, something similar to ORDPATH[1].
[1]: http://www.dbis.informatik.hu-berlin.de/fileadmin/lectures/WS2011_12/NeueKonzepte_Vorlesung/ordpath.pdf http://www.dbis.informatik.hu-berlin.de/fileadmin/lectures/W..., https://github.com/mejedi/libordpath https://github.com/mejedi/libordpath
- the_angry_angel 7y agoFWIW in MSSQL there’s always the `option (maxrecursion 0)` trick
- hobs 7y agoAlso other cursors, and GOTO statements :)