4 Commits

Author SHA1 Message Date
9c74ca6396 Remove stale comment 2017-11-27 14:57:08 +03:30
e0b478612e add support for inet typer (only AF_INET4)
Also change -D output format to CSV (from COPY statement) and send it to
STDERR instead of STDOUT for separation
2017-11-27 14:53:51 +03:30
Teodor Sigaev
5c5ba458fa Support decoding of catalog tables.
Support decoding of 'name' and 'char' types. Also introduce '~'
pseudo-type which just ignores all data left in current tuple during
decoding. These two types allow easily to decode catalog tables and
restore schema of a database even if it's corrupted and PostgreSQL
instance is not starting.

For instance, pg_attribute can be decoded like this:

pg_filedump -D oid,name,oid,int,smallint,~ path/to/segment/1249

Aleksander Alekseev
2017-03-01 15:08:09 +03:00
Teodor Sigaev
52fa0201f9 Partial data recovery (-D flag).
This feature allows to partially recover data from a given segment file
in format suitable for using in COPY FROM statement. List of supported
data types is currently not full and TOAST is not yet supported, but
it's better than nothing. Hopefully data recovery will be improved in
the future.

Implemented by Aleksander Alekseev, reviewed by Dmitry Ivanov, tested
by Dmitry Ivanov and Grigoriy Smolkin.
2017-01-17 16:01:12 +03:00