Home / Companies / Supabase / Blog / Post Details
Content Deep Dive

Postgres Language Server: implementing the Parser

Blog post from Supabase

Post Details
Company
Date Published
Author
Philipp Steinrötter
Word Count
2,865
Company Posts That Month
18
Language
English
Hacker News Points
162
Post removed?
No
Summary

The Postgres Language Server is being developed to improve the tooling around Postgres programming, making it easier for developers to write SQL in editors like VSCode. The parser is the core of every language server and converts written code into a form that tools can work with. Implementing a parser for Postgres is challenging due to its complex syntax. To overcome this, libpg_query is leveraged to parse SQL code reliably. The lexer breaks the input into individual SQL statements and parses them one by one, allowing errors within each statement to be handled independently.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.