News for hackers. Stuff that matters.
Re:A 2.5x faster Postgres parser with Claude Code by guptamanan100 on Friday February 06, 2026 @04:06AM (#46910622)
Hey HN, I'm the author. Happy to answer questions or discuss further.
Re:A 2.5x faster Postgres parser with Claude Code by Lemaxoxo on Friday February 06, 2026 @04:08AM (#46910639)
I'm curious because I have a similar use case for a querying frontend. Did you consider using https://github.com/tobymao/sqlglot? If so, what was missing to justify writing your own parser?
Re:A 2.5x faster Postgres parser with Claude Code by guptamanan100 on Friday February 06, 2026 @04:14AM (#46910680)
Good question! The main reason is that sqlglot is written in Python, so it wouldn't integrate natively with our Go codebase. We actually faced a similar decision with pg_query_go (https://github.com/pganalyze/pg_query_go) and passed on that too, anything that requires bridging another language means translating the AST back into Go, which adds a performance cost we wanted to avoid.
Re:A 2.5x faster Postgres parser with Claude Code by Lemaxoxo on Friday February 06, 2026 @08:49AM (#46912790)
Ok that makes sense! On my side I can get away with using it through WASM. But your performance needs won't allow that.
Re:A 2.5x faster Postgres parser with Claude Code by guptamanan100 on Friday February 06, 2026 @12:30PM (#46915669)
Right exactly!
Re:A 2.5x faster Postgres parser with Claude Code by jonsully on Friday February 06, 2026 @07:41AM (#46912104)
Neat build for sure, but did you write the actual article here by hand? Getting some AI sniffs in the copy..
Re:A 2.5x faster Postgres parser with Claude Code by guptamanan100 on Friday February 06, 2026 @12:30PM (#46915656)
I wrote it, but of course I used AI to polish it :smile: It would actually be ironic if I didn't use Claude to write about how Claude accelerated my engineering!