-
Notifications
You must be signed in to change notification settings - Fork 24
/
postgresql_autodoc.1.in
70 lines (68 loc) · 2.27 KB
/
postgresql_autodoc.1.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.TH POSTGRESQL_AUTODOC 1 "19 July 2009"
.SH NAME
postgresql_autodoc \- creates postgresql tables overview
.SH SYNOPSIS
.B postgresql_autodoc
[options]
.SH DESCRIPTION
This is a utility which will run through PostgreSQL system tables and
returns HTML, DOT, and 2 styles of XML which describes the database.
.PP
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.
.SH OPTIONS
.TP
.B \-d <dbname>
Specify database name to connect to (default: current user)
.TP
.B \-f <file>
Specify output file prefix (default: current user)
.TP
.B \-h <host>
Specify database server host (default: localhost)
.TP
.B \-p <port>
Specify database server port (default: 5432)
.TP
.B \-u <username>
Specify database username (default: current user)
.TP
.B \-\-password=<pw>
Specify database password (default: blank)
If no password is specified, one is prompted for.
.TP
.B \-w
Use ~/.pgpass for authentication (overrides all other password options)
.TP
.B \-l <path>
Path to the templates (default: @@TEMPLATE-DIR@@)
.TP
.B \-t <output>
Type of output wanted (default: All in template library)
.TP
.B \-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.
.TP
.B \-m <regexp>
Show only tables/objects with names matching the specified regular
expression.
.TP
.B \-\-table=<args>
Tables to export. Multiple tables may be provided using a
comma-separated list, i.e. table,table2,table3.
.TP
.B \-\-statistics
In 7.4 and later, with the contrib module pgstattuple installed we
can gather statistics on the tables in the database
(average size, free space, disk space used, dead tuple counts, etc.)
This is disk intensive on large databases as all pages must be visited.
.SH AUTHOR
Rod Taylor <autodoc@rbt.ca>