# Postern v0.3.2 - Table of Contents ## Pages - [Postern](readme.md) - [Changelog](changelog.md) - [Contributing](contributing.md) - [Security Policy](security.md) - Editors - [Visual Studio Code](vscode.md) - [Neovim](neovim.md) - [Fresh](fresh.md) - [Helix](helix.md) - [Emacs](emacs.md) - [Zed](zed.md) ## Modules - [Postern](Postern.md): Postern is a Language Server Protocol server for PostgreSQL configuration files (`postgresql.conf`, `pg_hba.conf`, `pg_ident.conf`). - Server - [Postern.Application](Postern.Application.md): Starts the Postern LSP application and its stdio transport. - [Postern.DocumentStore](Postern.DocumentStore.md): In-memory document store keyed by URI. - [Postern.Features](Postern.Features.md): Implements hover, completion, definition and document links. - [Postern.RuntimeArgs](Postern.RuntimeArgs.md): The command-line arguments, and whether the VM runs inside a Burrito binary. - [Postern.Server](Postern.Server.md): Language Server Protocol server for PostgreSQL configuration files. - [Postern.Stdio](Postern.Stdio.md): The stdio transport, with one difference from GenLSP's own: when the editor is gone, the VM halts at once. - [Postern.Symbols](Postern.Symbols.md): The outline of a file, as document symbols. - Parsers - [Postern.Parser.AuthLines](Postern.Parser.AuthLines.md): The records of `pg_hba.conf` and `pg_ident.conf` as the server reads them. - [Postern.Parser.PgHba](Postern.Parser.PgHba.md): Parser for `pg_hba.conf`. - [Postern.Parser.PgIdent](Postern.Parser.PgIdent.md): Parser for `pg_ident.conf`. - [Postern.Parser.PostgresqlConf](Postern.Parser.PostgresqlConf.md): Parser for `postgresql.conf` and `postgresql.auto.conf`, line by line the way guc-file.l scans one. - Checks - [Postern.ConfigTree](Postern.ConfigTree.md): The files PostgreSQL reads for one of its configuration files, in the order it reads them. - [Postern.Diagnostics](Postern.Diagnostics.md): Produces LSP diagnostics from file contents. - [Postern.FileKind](Postern.FileKind.md): Detects the kind of PostgreSQL configuration file based on its basename. - [Postern.Files](Postern.Files.md): Reads the configuration files a check needs besides the one it is about. - [Postern.GucValue](Postern.GucValue.md): Reads a value the way guc.c reads one. - [Postern.PgHbaDiagnostics](Postern.PgHbaDiagnostics.md): Offline diagnostics for `pg_hba.conf` rules. - [Postern.PgHbaOptions](Postern.PgHbaOptions.md): The authentication options a `pg_hba.conf` rule can carry and the methods each one belongs to, as `parse_hba_auth_opt` in PostgreSQL's hba.c lays them out for the target version. The messages are the ones `pg_hba_file_rules` reports, so a rule the server would refuse reads the same way in the editor. - [Postern.PgIdentDiagnostics](Postern.PgIdentDiagnostics.md): Offline diagnostics for `pg_ident.conf`, including unused map detection. - [Postern.PostgresqlConfDiagnostics](Postern.PostgresqlConfDiagnostics.md): Offline diagnostics for PostgreSQL configuration assignments. - [Postern.RegexCheck](Postern.RegexCheck.md): Whether a regular expression the server would compile when a file loads compiles, in the words of its engine. - [Postern.SettingHistory](Postern.SettingHistory.md): What became of a setting name the target version does not have. - [Postern.StartupChecks](Postern.StartupChecks.md): The checks the postmaster makes across settings when it starts, which a reload never makes, so `pg_file_settings` passes them and the failure waits for the next restart. - [Postern.StringSettings](Postern.StringSettings.md): The check hooks of the string settings a reload runs, in their words. - Live server - [Postern.LiveDiagnostics](Postern.LiveDiagnostics.md): Maps live PostgreSQL configuration results to source diagnostics. - [Postern.LiveFeatures](Postern.LiveFeatures.md): Inlay hints and code actions backed by a live PostgreSQL snapshot, and the words for what a live command did. - [Postern.LiveOracle](Postern.LiveOracle.md): The PostgreSQL connection the live features read through. - Catalogs and documentation - [Postern.Catalog](Postern.Catalog.md): Loads generated PostgreSQL setting catalogs. - [Postern.CatalogGenerator](Postern.CatalogGenerator.md): Generates versioned PostgreSQL setting catalogs from live PostgreSQL servers and the source of the same versions. - [Postern.Docs](Postern.Docs.md): The manual's words for what stands at a position in pg_hba.conf or pg_ident.conf, from the generated `priv/docs/pgNN.json`. - [Postern.DocsGenerator](Postern.DocsGenerator.md): Generates `priv/docs/pgNN.json`, the words the hover shows for pg_hba.conf and pg_ident.conf, from the client authentication chapter of each version's manual in a git checkout of PostgreSQL. - Command line - [Postern.CLI](Postern.CLI.md): Command-line checks for PostgreSQL configuration files. ## Mix Tasks - Command line - [mix postern.catalog](Mix.Tasks.Postern.Catalog.md): Generates `priv/catalog/pg13.json` through `priv/catalog/pg18.json` by querying Docker PostgreSQL servers on ports 5413 through 5418 and reading the enum tables of each version from a git checkout of PostgreSQL. - [mix postern.check](Mix.Tasks.Postern.Check.md): Runs `postern check` from Mix for local development and tests. - [mix postern.docs](Mix.Tasks.Postern.Docs.md): Generates `priv/docs/pg13.json` through `priv/docs/pg18.json` from the client authentication chapter of each version's manual, read from a git checkout of PostgreSQL that has the release branches