# supabase-community/postgres-language-server

A Language Server for Postgres

Repository: https://github.com/supabase-community/postgres-language-server
Canonical: https://ross.abutalabs.com/products/postgres-language-server
Homepage: http://pg-language-server.com/
Language: Rust
License: MIT
License Family: permissive
Topics: language-server-protocol, postgres
Last push: 2026-08-17T07:35:43+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 95, longevity 86
- inputs: {"age_days": 1204, "days_push": 16, "days_rel": 37, "gap_med": 6, "n_releases_24m": 40}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5250, forks 124 (observed 2026-08-28T04:09:13.698266+00:00)

## What it is
A Language Server Protocol implementation and toolchain for Postgres SQL, built on libpg_query for 100% syntax compatibility. It provides editor features like autocompletion, hover, diagnostics, type checking, formatting, and linting via LSP, CLI, HTTP APIs, and a WebAssembly module.

## Use cases
- get SQL autocompletion and hover docs in my editor for Postgres
- lint Postgres migrations for unsafe changes
- type-check SQL queries against a live database
- format SQL files consistently
- catch syntax errors in PL/pgSQL functions while editing
- integrate Postgres SQL diagnostics into Neovim or VSCode

## When to choose
- you write or maintain Postgres SQL and want IDE-grade tooling
- you need migration or database linting in CI
- you want a parser-accurate SQL formatter or diagnostics via LSP

## When to avoid
- you work with non-Postgres databases like MySQL or SQLite
- you need a full SQL IDE or query GUI rather than editor tooling

## Facets
- artifact type: library
- maturity: active
- function: linter, formatter, parser, developer-tools, editor
- domain: databases, developer-tools, parsers, apis
- platform: cross-platform, editor-plugin, cli, wasm
- tags: postgres, language-server-protocol, sql, lsp, rust, type-checking, autocompletion, migration-linting

## Member repositories
- supabase-community/postgres-language-server (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:13.698266+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:59:34.193659+00:00, confidence not recorded.
  - readme: https://github.com/supabase-community/postgres-language-server (fetched 2026-08-28T04:09:13.698266+00:00, sha ce03913233f3)
  - homepage: http://pg-language-server.com/ (fetched 2026-08-29T08:54:36.177684+00:00, sha 51b8bcb2966e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
