diff --git a/doc/src/sgml/oid2name.sgml b/doc/src/sgml/oid2name.sgml index 57893a3d129..1c127893526 100644 --- a/doc/src/sgml/oid2name.sgml +++ b/doc/src/sgml/oid2name.sgml @@ -1,4 +1,4 @@ - + oid2name @@ -30,119 +30,116 @@ oid2name connects to a target database and extracts OID, filenode, and/or table name information. You can also have - it show database OIDs or tablespace OIDs. The program is controlled by - a large number of command-line options, as shown in - . + it show database OIDs or tablespace OIDs. - - <application>oid2name</> options - - - - Option - Description - - + - - - -o oid - show info for table with OID oid - + + <application>oid2name</> options - - -f filenode - show info for table with filenode filenode - + + oid2name accepts the following command-line arguments: - - -t tablename_pattern - show info for table(s) matching tablename_pattern - + - - -s - show tablespace OIDs - + + oid + show info for table with OID oid + - - -S - include system objects (those in - information_schema, pg_toast - and pg_catalog schemas) - - + + filenode + show info for table with filenode filenode + - - -i - include indexes and sequences in the listing - + + tablename_pattern + show info for table(s) matching tablename_pattern + - - -x - display more information about each object shown: tablespace name, - schema name, and OID - - + + + show tablespace OIDs + - - -q - omit headers (useful for scripting) - + + + include system objects (those in + , + and schemas) + + - - -d database - database to connect to - + + + include indexes and sequences in the listing + - - -H host - database server's host - + + + display more information about each object shown: tablespace name, + schema name, and OID + + - - -p port - database server's port - + + + omit headers (useful for scripting) + - - -U username - username to connect as - + + database + database to connect to + - - -P password - password (deprecated — putting this on the command line - is a security hazard) - - - -
+ + host + database server's host + + + + port + database server's port + + + + username + username to connect as + + + + password + password (deprecated — putting this on the command line + is a security hazard) + + + + To display specific tables, select which tables to show by - using -o, -f and/or -t. - -o takes an OID, - -f takes a filenode, - and -t takes a tablename (actually, it's a LIKE - pattern, so you can use things like foo%). + using - If you don't give any of -o, -f or -t, - but do give -d, it will list all tables in the database - named by -d. In this mode, the -S and - -i options control what gets listed. + If you don't give any of - If you don't give -d either, it will show a listing of database - OIDs. Alternatively you can give -s to get a tablespace + If you don't give