14 Commits

Author SHA1 Message Date
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
Christoph Berg
67f438986f Bump version to 9.6.0 2016-09-29 13:24:49 +02:00
Teodor Sigaev
052ed01129 Fix checksum validation for relations that have more than one segment.
A blkno argument passed to pg_checksum_page procedure should be not a
relative block number in a given segment but an absolute block number
in the entire relation. It's the same for the segment number 0, but for
segment number N the difference is RELSEG_SIZE * N.

Aleksander Alekseev
2016-09-07 19:27:02 +03:00
Christoph Berg
10d27139e2 Support 9.5 and recognize more flags
This follows the CRC32 macro renames in 9.5 (we do not attempt to
maintain support for the older versions), adds support for the
DB_SHUTDOWNED_IN_RECOVERY dbState, and adds support for missing BTree
and GIN page flags.

Satoshi Nagayasu
2016-03-19 17:52:28 +01:00
Christoph Berg
595225c836 Bump copyright year 2016-02-02 19:04:03 +01:00
Christoph Berg
17dafd471e Change all // comments to /* */ and run pgindent
Fabrízio de Royes Mello
2014-08-30 22:18:12 +02:00
Christoph Berg
81982fa168 Add support for verifying block checksums
Patch by Jeff Davis, rebased by Fabrízio de Royes Mello.
2014-08-30 22:15:22 +02:00
Tom Lane
e3b9612db0 Update copyright date. 2014-06-10 13:24:38 -04:00
Tom Lane
bbd992bc26 Preliminary updates for Postgres 9.3. 2013-06-06 18:33:16 +00:00
Tom Lane
4f71071d5b Updates for latest Postgres 9.2 sources.
We no longer need pg_crc.c, and hence not a source tree, yay.
2012-03-12 16:08:33 +00:00
Tom Lane
883c674f6f Preliminary support for SP-GiST indexes. 2011-12-18 00:11:29 +00:00
Tom Lane
3551cfe252 Update for Postgres 9.1; add knowledge of some more flag bits;
improve Makefile to be able to build a release tarball.
2011-11-26 22:14:08 +00:00
Tom Lane
ac96dfbaca Assorted adjustments to prepare pg_filedump for its new life.
Add PostgreSQL Global Development Group to the copyright notices, and
remove a couple of no-longer-appropriate references to Red Hat.
Unfortunately I can't undo Red Hat's choice of GPL licensing, but it is
what it is.

Also reduce the pain of version-stamping by coalescing references to the
version into one pair of macros, and removing not-especially-useful
change logs.  IMO the commit logs serve that purpose just as well.
2011-01-18 02:28:26 +00:00
Tom Lane
8446d97d72 Initial revision 2011-01-18 01:33:27 +00:00