Julien Roy julien@jroy.ca C library for accessing the PostgreSQL parser outside of the server. This library uses the actual PostgreSQL server source to parse SQL queries and return the internal PostgreSQL parse tree. Note that this is mostly intended as a base library for pg_query (Ruby), pg_query.go (Go), pgsql-parser (Node), psqlparse (Python) and pglast (Python 3). You can find further background to why a query's parse tree is useful here: https://pganalyze.com/blog/parse-postgresql-queries-in-ruby.html https://github.com/pganalyze/libpg_query/issues https://github.com/pganalyze/libpg_query/releases pganalyze/libpg_query dev-db/postgresql target version