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:
parent
b7d99bdac5
commit
3e56a632d1
@ -71,7 +71,7 @@ The following options are valid for heap and index files:
|
|||||||
off all formatting options)
|
off all formatting options)
|
||||||
-d Display formatted block content dump (Option will turn off
|
-d Display formatted block content dump (Option will turn off
|
||||||
all other formatting options)
|
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:
|
List of supported types:
|
||||||
* bigint
|
* bigint
|
||||||
* bigserial
|
* bigserial
|
||||||
@ -96,11 +96,11 @@ The following options are valid for heap and index files:
|
|||||||
* timestamp
|
* timestamp
|
||||||
* timetz
|
* timetz
|
||||||
* uuid
|
* uuid
|
||||||
* varchar
|
* varchar
|
||||||
* varcharN -- varchar(n)
|
* varcharN -- varchar(n)
|
||||||
* xid
|
* xid
|
||||||
* xml
|
* xml
|
||||||
* ~ -- ignores are attributes left in a tuple
|
* ~ -- ignores all attributes left in a tuple
|
||||||
-f Display formatted block content dump along with interpretation
|
-f Display formatted block content dump along with interpretation
|
||||||
-h Display this information
|
-h Display this information
|
||||||
-i Display interpreted item details
|
-i Display interpreted item details
|
||||||
|
@ -106,26 +106,31 @@ DisplayOptions(unsigned int validOptions)
|
|||||||
|
|
||||||
printf
|
printf
|
||||||
("\nUsage: pg_filedump [-abcdfhikxy] [-R startblock [endblock]] [-D attrlist] [-S blocksize] [-s segsize] [-n segnumber] file\n\n"
|
("\nUsage: pg_filedump [-abcdfhikxy] [-R startblock [endblock]] [-D attrlist] [-S blocksize] [-s segsize] [-n segnumber] file\n\n"
|
||||||
"Display formatted contents of a PostgreSQL heap/index/control file\n"
|
"Display formatted contents of a PostgreSQL heap/index/control file\n"
|
||||||
"Defaults are: relative addressing, range of the entire file, block\n"
|
"Defaults are: relative addressing, range of the entire file, block\n"
|
||||||
" size as listed on block 0 in the file\n\n"
|
" size as listed on block 0 in the file\n\n"
|
||||||
"The following options are valid for heap and index files:\n"
|
"The following options are valid for heap and index files:\n"
|
||||||
" -a Display absolute addresses when formatting (Block header\n"
|
" -a Display absolute addresses when formatting (Block header\n"
|
||||||
" information is always block relative)\n"
|
" information is always block relative)\n"
|
||||||
" -b Display binary block images within a range (Option will turn\n"
|
" -b Display binary block images within a range (Option will turn\n"
|
||||||
" off all formatting options)\n"
|
" off all formatting options)\n"
|
||||||
" -d Display formatted block content dump (Option will turn off\n"
|
" -d Display formatted block content dump (Option will turn off\n"
|
||||||
" all other formatting options)\n"
|
" all other formatting options)\n"
|
||||||
" -D Try to decode tuples using given comma separated list of types.\n"
|
" -D Decode tuples using given comma separated list of types\n"
|
||||||
" For full list of supported attribyte types see README file.\n"
|
" Supported types:\n"
|
||||||
" -f Display formatted block content dump along with interpretation\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"
|
" -h Display this information\n"
|
||||||
" -i Display interpreted item details\n"
|
" -i Display interpreted item details\n"
|
||||||
" -k Verify block checksums\n"
|
" -k Verify block checksums\n"
|
||||||
" -R Display specific block ranges within the file (Blocks are\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"
|
" [endblock]: block to end at\n"
|
||||||
" A startblock without an endblock will format the single block\n"
|
" A startblock without an endblock will format the single block\n"
|
||||||
" -s Force segment size to [segsize]\n"
|
" -s Force segment size to [segsize]\n"
|
||||||
" -n Force segment number to [segnumber]\n"
|
" -n Force segment number to [segnumber]\n"
|
||||||
" -S Force block size to [blocksize]\n"
|
" -S Force block size to [blocksize]\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user