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

Postgres Language Server: Initial Release

Blog post from Supabase

Post Details
Company
Date Published
Author
Philipp Steinrötter, Julian Domke
Word Count
2,956
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

The Postgres Language Server is a Language Server Protocol (LSP) implementation for Postgres, aiming to provide reliable SQL tooling and developer experience. The initial release supports autocompletion, syntax error highlighting, type-checking, linter, and provides diagnostics. It's available via VSCode Extension, Neovim, GitHub Releases, and npm. The server architecture is designed around the assumption that the smallest unit of compilation is a single statement, with the database schema being the single source of truth for any type information. The parser uses `libpg_query` to parse SQL code reliably, while `tree-sitter` provides parsing for incomplete or malformed input. The server can process changes to the document efficiently by invalidating only affected statements and updating their ranges. Autocompletion is provided using a scoring algorithm that takes into account the changed node and CST. The Language Server is just one entry point in the project's vision, which aims to create a home for Postgres tooling and make everything accessible. Improvements to reliability will be focused on next, followed by installation guides, publishing extensions, and writing documentation to enable future contributors.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Developer Experience 1 433 208 102 +15%
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.