POSTGRESQL_AUTODOC(1)
π POSTGRESQL_AUTODOC π
okay bestie, gather round, because this is the postgresql_autodoc(1) page from the General Commands Manual and it's literally about to make your database look β¨documentedβ¨. no cap.
πΈ NAME πΈ
postgresql_autodoc β creates postgresql tables overview
π¦ SYNOPSIS π¦
postgresql_autodoc [options]
β¨ DESCRIPTION β¨
so here's the vibe: this utility runs through your PostgreSQL system tables and hands you back HTML, DOT, and 2 styles of XML that describe the database. it's giving "your schema but make it readable". π
The HTML is human readable (via webbrowser). π«Ά
The first style of XML is actually the fileformat of Dia, a UML diagram tool.
The second type of XML is similar to the HTML but in the Docbook 4 format. It enables yous to mix in other docbook documentation via the XREFs, generating PDFs, HTML, RTF, or other formatted documents. Between these tools and JavaDoc with the appropriate XREFs, documentation about a project can be generated quickly and be easily updatable yet have a very professional look with some DSSSL work. π iconic behavior honestly.
π OPTIONS π
-d <dbname>β Specify database name to connect to (default: current user)-f <file>β Specify output file prefix (default: current user)-h <host>β Specify database server host (default:localhost)-p <port>β Specify database server port (default:5432)-u <username>β Specify database username (default: current user)--password=<pw>β Specify database password (default: blank)- If no password is specified, one is prompted for. π
-wβ Use~/.pgpassfor authentication (overrides all other password options)-l <path>β Path to the templates (default:/usr/share/postgresql-autodoc)-t <output>β Type of output wanted (default: All in template library)-s <schema>β Specify a specific schema to match. Technically this is a regular expression but anything other than a specific name may have unusual results. β οΈ-m <regexp>β Show only tables/objects with names matching the specified regular expression.--table=<args>β Tables to export. Multiple tables may be provided using a comma-separated list, i.e.table,table2,table3.--statisticsβ In7.4and later, with the contrib modulepgstattupleinstalled we can gather statistics on the tables in the database (average size, free space, disk space used, dead tuple counts, etc.)
π¨ bestie, heads up: --statistics is disk intensive on large databases because all pages must be visited. no shortcuts, the pages are getting read. plan accordingly. π
π AUTHOR π
Rod Taylor <autodoc@rbt.ca>
and that's the whole page, bestie. π this one's from the General Commands Manual, dated 19 July 2009 β yes it's old, and yes it still eats. π postgresql_autodoc(1) out. mwah. πβ¨π¦
π¦ where this page comes from
- debian bookworm: postgresql-autodoc 1.41+20200921-1.1 Β· BSD-3-Clause
- debian trixie: postgresql-autodoc 1.41+20200921-1.1 Β· BSD-3-Clause
- ubuntu noble: postgresql-autodoc 1.41+20200921-1.1 Β· BSD-3-Clause
- ubuntu questing: postgresql-autodoc 1.41+20200921-1.1
- ubuntu resolute: postgresql-autodoc 1.41+20200921-1.1build1 Β· BSD-3-Clause
- ubuntu stonking: postgresql-autodoc 1.41+20200921-1.1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms