I keep explaining the same tables

Short answerGive people documentation they can open without you. DbSchema Pro publishes the schema as one HTML5 file, a PDF or Markdown, with the ER diagram and table and column comments as tooltips. SchemaSpy, a free LGPL tool, builds HTML docs with diagrams, and the \d+ command in psql shows column comments on PostgreSQL. Free basics: write comments into the database, start with the tables people ask about and keep a README.

01

Publish the schema as documentation with DbSchema Pro

DbSchema Pro writes the documentation for people who don't run DbSchema: one HTML5 file, a PDF or a Markdown file, with the diagram and a description of every table, column, index and foreign key. With the Image Mouse-Over Tooltips option, the comments show when someone points at a table or column in the diagram. Generating it reads the model and changes neither the model nor the database. DbSchema Pro costs $294 one-time plus taxes for a perpetual Business licence with the first year of updates; from the second year, updates are $75 a year (list price on dbschema.com, 26 November 2026).

Good if analysts, auditors or new colleagues keep asking what a table means

Schema Documentation · Pricing and editions compared

Tool
Cost€€
EffortLow
HelpsToday
02

Generate HTML docs with SchemaSpy from the command line

SchemaSpy is a free Java tool (Java 8 or higher) that reads the metadata of a schema and builds a browser report with entity-relationship diagrams you can click through. You run it with a command like java -jar schemaspy.jar -t dbType -db dbName -o outputDir, and it renders Markdown written in your comments. For the diagrams it needs the Graphviz dot program or its embedded viz.js option.

Good if you want free docs you can regenerate whenever the schema changes

Skip if nobody on the team wants to maintain a Java command-line setup

Overview · Features · Get Started

Tool
CostFree
EffortMedium
HelpsThis week
03

Show the comments with \d+ in psql

On PostgreSQL, psql's \d+ command shows a table with extra details, for example the comments on its columns. Once comments are in the database, you can answer a question by pasting that output instead of explaining the table again.

Good if your database is PostgreSQL and the person asking can read a table listing

PostgreSQL

Tool
CostFree
EffortLow
HelpsToday
04

Write table and column comments into the database

Put the explanation where every tool can read it. On PostgreSQL that is COMMENT ON TABLE orders IS '...' and COMMENT ON COLUMN orders.status IS '...'. On SQL Server, sp_addextendedproperty adds an extended property, such as a description, to a table or column.

Good if the same explanations live only in your head or in chat threads

PostgreSQL · Microsoft Learn

Do it yourself
CostFree
EffortMedium
HelpsThis week
05

Start with the tables people ask about most

Don't try to document everything at once. Write down the last five questions you answered, and comment those tables and columns first with COMMENT ON COLUMN.

Good if documenting the whole schema feels too big to start

PostgreSQL

Do it yourself
CostFree
EffortLow
HelpsToday
06

Keep a README next to the schema in the repo

GitHub describes a README as the file that tells people why a project is useful, what they can do with it and how to use it. Write one for the database: what each schema is for, who owns it and where the generated documentation lives. Link to it whenever someone asks.

Good if your schema changes are already in a Git repository

GitHub Docs

Do it yourself
CostFree
EffortLow
HelpsThis week

When it's bigger than a quick fix

Bring in a DBA or the data team lead when questions keep coming from other teams despite comments and generated docs. Agree with them on clear table names and an owner for each schema.

PostgreSQL · DbSchema

Questions people ask

How do I document a database?

Put table and column comments into the database itself, then generate HTML or PDF documentation from it so people can read it without database access.

Are there free database documentation tools?

Yes. SchemaSpy is a free open-source tool that builds an HTML report with diagrams from the database metadata.

How do I add a comment to a table in PostgreSQL?

Use COMMENT ON TABLE name IS 'text' for a table and COMMENT ON COLUMN table.column IS 'text' for a column. psql's \d+ then shows them.

How do I document a SQL Server database?

Add descriptions to tables and columns as extended properties with sp_addextendedproperty, so they live in the database next to the schema.

Sources

  1. DbSchema: Schema Documentation
  2. DbSchema: Pricing and editions compared
  3. SchemaSpy: Overview
  4. SchemaSpy: Features
  5. SchemaSpy: Get Started
  6. PostgreSQL: psql
  7. PostgreSQL: COMMENT
  8. Microsoft Learn: sp_addextendedproperty (Transact-SQL)
  9. GitHub Docs: About the repository README file