Add list of types supported by -D to help output

Also fix a few typos, and fix indentation of help text.
This commit is contained in:
Christoph Berg 2017-10-22 20:06:17 +02:00
parent b7d99bdac5
commit 3e56a632d1
2 changed files with 16 additions and 11 deletions

View File

@ -71,7 +71,7 @@ The following options are valid for heap and index files:
off all formatting options)
-d Display formatted block content dump (Option will turn off
all other formatting options)
-D Try to decode tuples using given comma separated list of types.
-D Decode tuples using given comma separated list of types.
List of supported types:
* bigint
* bigserial
@ -100,7 +100,7 @@ The following options are valid for heap and index files:
* varcharN -- varchar(n)
* xid
* xml
* ~ -- ignores are attributes left in a tuple
* ~ -- ignores all attributes left in a tuple
-f Display formatted block content dump along with interpretation
-h Display this information
-i Display interpreted item details

View File

@ -116,14 +116,19 @@ DisplayOptions(unsigned int validOptions)
" off all formatting options)\n"
" -d Display formatted block content dump (Option will turn off\n"
" all other formatting options)\n"
" -D Try to decode tuples using given comma separated list of types.\n"
" For full list of supported attribyte types see README file.\n"
" -D Decode tuples using given comma separated list of types\n"
" Supported types:\n"
" bigint bigserial bool char charN date float float4 float8 int\n"
" json macaddr name oid real serial smallint smallserial text\n"
" time timestamp timetz uuid varchar varcharN xid xml\n"
" ~ ignores all attributes left in a tuple\n"
" -f Display formatted block content dump along with interpretation\n"
" -h Display this information\n"
" -i Display interpreted item details\n"
" -k Verify block checksums\n"
" -R Display specific block ranges within the file (Blocks are\n"
" indexed from 0)\n" " [startblock]: block to start at\n"
" indexed from 0)\n"
" [startblock]: block to start at\n"
" [endblock]: block to end at\n"
" A startblock without an endblock will format the single block\n"
" -s Force segment size to [segsize]\n"