▲ | pphysch 5 days ago | |||||||||||||||||||||||||
I agree. Does anyone know much heavy lifting is done by pg_query in wrapping the Postgres code vs. Postgres in expressing that code in a manner that makes pg_query possible? | ||||||||||||||||||||||||||
▲ | ZiiS 5 days ago | parent [-] | |||||||||||||||||||||||||
Tends to be a matter of opinion. Postgres does not expose the relevant functions, so https://github.com/pganalyze/libpg_query has to do some heavy lifting to convert their source code into a nice library. Conversely, Postgres is very well written code, in an extremely common language, with a stable release cadence, and such a long track record it is seen as the reference implementation for correctly parsing SQL. | ||||||||||||||||||||||||||
|