PG_FILEDUMP(1) User Commands PG_FILEDUMP(1)NAME
manual page for pg_filedump
SYNOPSIS
pg_filedump [-abcdfhixy] [-R startblock [endblock]] [-S blocksize] file
DESCRIPTION
Display formatted contents of a PostgreSQL heap/index/control file.
The following options are valid for heap and index files:
-a Display absolute addresses when formatting (Block header information is always block relative)
-b Display binary block images within a range (Option will turn off all formatting options)
-d Display formatted block content dump (Option will turn off all other formatting options)
-f Display formatted block content dump along with interpretation
-h Display this information
-i Display interpreted item details
-R Display specific block ranges within the file (Blocks are indexed from 0)
[startblock]: block to start at [endblock]: block to end at
A startblock without an endblock will format the single block
-S Force block size to [blocksize]
-x Force interpreted formatting of block items as index items
-y Force interpreted formatting of block items as heap items
The following options are valid for control files:
-c Interpret the file listed as a control file
-f Display formatted content dump along with interpretation
-S Force block size to [blocksize]
OTHERS
This manual page was generated from pg_filedump help output (-h) by help2man(1).
REPORTING BUGS
Report bugs to <pgsql-bugs@postgresql.org>
pg_filedump 9.2.0 June 2013 PG_FILEDUMP(1)
Check Out this Related Man Page
FILEFRAG(8) System Manager's Manual FILEFRAG(8)NAME
filefrag - report on file fragmentation
SYNOPSIS
filefrag [ -bblocksize ] [ -BeksvxX ] [ files... ]
DESCRIPTION
filefrag reports on how badly fragmented a particular file might be. It makes allowances for indirect blocks for ext2 and ext3 filesys-
tems, but can be used on files for any filesystem.
The filefrag program initially attempts to get the extent information using FIEMAP ioctl which is more efficient and faster. If FIEMAP is
not supported then filefrag will fall back to using FIBMAP.
OPTIONS -B Force the use of the older FIBMAP ioctl instead of the FIEMAP ioctl for testing purposes.
-bblocksize
Use blocksize in bytes for output instead of the filesystem blocksize. For compatibility with earlier versions of filefrag, if
blocksize is unspecified it defaults to 1024 bytes.
-e Print output in extent format, even for block-mapped files.
-k Use 1024-byte blocksize for output (identical to '-b 1024').
-s Sync the file before requesting the mapping.
-v Be verbose when checking for file fragmentation.
-x Display mapping of extended attributes.
-X Display extent block numbers in hexadecimal format.
AUTHOR
filefrag was written by Theodore Ts'o <tytso@mit.edu>.
E2fsprogs version 1.42.9 December 2013 FILEFRAG(8)
Hi,
I have some very nicely formatted output on a monitor script and I'd like to make one of the fields bold when a threshold is reached but when I do it changes the formatting.
I've tried using tabs to separate the fields and I've tried using printf to force the size of the fields. Below is... (2 Replies)
Hi guys,
It will be a great help if somebody can help me in following problem.
I have tried hard but because of lack of UNIX/LINUX knowledge I am not able to do it.
I have written a script that returns 3 things of all the employees in my organisation. i.e. Name, Login time & log out time of... (2 Replies)
I have file with different columns
for ex.
contents of file "txt"
NAME AGE MARKS
HARRY 23 89
TOM 12 67
BOB 23 11
and you see its not formatted.Now, I need the file "txt" to be formatted like
COLUMN1 COLUMN2 COLUMN3
NAME AGE ... (3 Replies)
Hi guys,
I am trying to add the content of fileB into fileA but after a specific block within FileA
for instance i have a file that starts as follow:
-------------------------------------------------------------------------------
-- Title :
-- Project : ... (4 Replies)
Hello,
I have a file of text and numbers from which I want to extract certain fields and write it to a new file. I would use awk but unfortunately the input data isn't always formatted into the correct columns. I am using tcsh.
For example, given the following data
I want to extract:
and... (3 Replies)
I am searching for a string in a file and then redirecting the contents in another file... however the formatting is not preserved.. Can you please help me on this ... (5 Replies)
Sorry for being a n00b, but I'm having a lot more trouble than I should with formatting the output to the program I finally completed. I'm basically looking for the linux equivalent to setw( ) from c++ so that I can print things in columns like this (but without the underlines lol):
MISSPELLED: ... (4 Replies)
Hello,
I'm having trouble with formatting some text via the terminal. I can get it perfectly formatted, but when I try and copy paste the text from the output file it loses it's formatting. Very frustrating!
Basically I have 7 files (data data2 data3 data4 data5 data6 data7) containing a... (13 Replies)
Hi All,
I got a problem in executing block.sh in w.sh. In particular, I got some files as
w.sh, block.sh , blackip.db , b.txt in a chain process as below:
w.sh --call --> block.sh -->blackip.db--->b.txt <--iptables
Ok, here are code
w.sh
block.sh
blackip.db is a file of ip... (2 Replies)
Hey can anyone help me with newline formatting?
i bet someone will ask why im rewriting du code, im trying to write a simple script that have slightly different function than du lol....
echo $(du "$dval" | tr ' ' '\n')
atm with above code it will printout
i've tried sed and awk... cant... (7 Replies)
Hi,
I have a file containing multiple entries. Each block starts with <BEGIN and ends with <END. Sample data is given below
<BEGIN
IMSI=095001202630;
MSISDN=00145132916;
DEFCALL=TS11;
CURRENTNAM=BOTH;
CAT=COMMON;
TBS=TS11&TS12&TS21&TS22;
CARDTYPE=SIM;
... (2 Replies)