Support decoding of catalog tables.
authorTeodor Sigaev <teodor@sigaev.ru>
Wed, 1 Mar 2017 12:08:09 +0000 (15:08 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Wed, 1 Mar 2017 12:08:09 +0000 (15:08 +0300)
commit5c5ba458fa154183d11d43218adf1504873728fd
treef67444e97f9e519855914cdf0d724331e45c17a7
parent52fa0201f97808d518c64bcb9696f2a350678aa5
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
README.pg_filedump
decode.c
pg_filedump.c