Commit fcfe88ca authored by Michael Meskes's avatar Michael Meskes

Imported Upstream version 8.3

parent d8240a18
2008-02-08 Tom Lane <tgl@redhat.com>
* pg_filedump.c: Updates for various representation changes in
PostgreSQL 8.3; in particular there is finally a trustworthy way
to tell apart the various types of index special space.
* pg_filedump.c, .h: Update version and copyright date.
2007-02-14 Tom Lane <tgl@redhat.com>
* pg_filedump.c, .h: Remove rtree support (gone in PostgreSQL 8.2)
......
......@@ -6,7 +6,8 @@ EXTRA_CLEAN = pg_crc.c
DOCS = README.pg_filedump
ifdef USE_PGXS
PGXS := $(shell pg_config --pgxs)
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/pg_filedump
......
pg_filedump - Display formatted contents of a PostgreSQL heap/index/control
file.
Copyright (c) 2002-2007 Red Hat, Inc.
Copyright (c) 2002-2008 Red Hat, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -10,7 +10,7 @@ the Free Software Foundation; either version 2 of the License, or
Author: Patrick Macdonald <patrickm@redhat.com>
Version: 8.2.0
Version: 8.3.0
Overview:
------------------------------------------------------------------------
......@@ -18,9 +18,9 @@ pg_filedump is a utility to format PostgreSQL heap/index/control files
into a human-readable form. You can format/dump the files several ways,
as listed in the Invocation section, as well as dumping straight binary.
The type of file (heap/index) is determined by the structure of the
blocks within the file. However, to format a control file you must use
the -c option.
The type of file (heap/index) can usually be determined automatically
by the content of the blocks within the file. However, to format a
pg_control file you must use the -c option.
The default is to format the entire file using the block size listed on
block 0 (heap/index files) and display block relative addresses. These
......@@ -33,6 +33,9 @@ corrupt, you need a method of forcing a block size.
Release Notes / Databases Supported
-----------------------------------------------------------------------
V8.3.0 Must be compiled against a PostgreSQL 8.3 installation.
Supports: PostgreSQL 8.3.x
V8.2.0 Must be compiled against a PostgreSQL 8.2 installation.
Supports: PostgreSQL 8.2.x
......@@ -62,7 +65,7 @@ There are two makefiles included in this package. Makefile is a
standalone makefile for pg_filedump. Alter the include and src
variables to point to the proper directories. Makefile.contrib can be
used if the package was untarred in the contrib directory of a
PostgreSQL/RHDB build tree.
PostgreSQL build tree.
make
make install (if in the contrib directory)
......
This diff is collapsed.
/*
* pg_filedump.h - PostgreSQL file dump utility for dumping and
* formatting heap(data), index and control files.
* Version 8.2.0 for PostgreSQL 8.2
* formatting heap (data), index and control files.
* Version 8.3.0 for PostgreSQL 8.3
*
* Copyright (c) 2002-2007 Red Hat, Inc. All rights reserved.
* Copyright (c) 2002-2008 Red Hat, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -60,8 +60,8 @@ static unsigned int itemOptions = 0;
typedef enum
{
ITEM_DETAIL = 0x00000001, // -i: Display interpreted items
ITEM_HEAP = 0x00000002, // -x: Blocks contain heap items
ITEM_INDEX = 0x00000004 // -y: Blocks contain heap items
ITEM_HEAP = 0x00000002, // -y: Blocks contain heap items
ITEM_INDEX = 0x00000004 // -x: Blocks contain index items
}
itemSwitches;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment