From 5f853c655663bf829c02895de2b445a5f3caa24b Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 6 Oct 2008 14:13:17 +0000 Subject: Use fork names instead of numbers in the file names for additional relation forks. While the file names are not visible to users, for those that do peek into the data directory, it's nice to have more descriptive names. Per Greg Stark's suggestion. --- doc/src/sgml/pageinspect.sgml | 8 ++++---- doc/src/sgml/storage.sgml | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/pageinspect.sgml b/doc/src/sgml/pageinspect.sgml index 94249399e10..e510d202aa4 100644 --- a/doc/src/sgml/pageinspect.sgml +++ b/doc/src/sgml/pageinspect.sgml @@ -1,4 +1,4 @@ - + pageinspect @@ -19,7 +19,7 @@ - get_raw_page(relname text, forknum int, blkno int) returns bytea + get_raw_page(relname text, fork text, blkno int) returns bytea @@ -27,8 +27,8 @@ get_raw_page reads the specified block of the named table and returns a copy as a bytea value. This allows a single time-consistent copy of the block to be obtained. - forknum should be 0 for the main data fork, or 1 for - the FSM. + fork should be 'main' for the main + data fork, or 'fsm' for the FSM. diff --git a/doc/src/sgml/storage.sgml b/doc/src/sgml/storage.sgml index 51f8a2fe165..9b93ea5599b 100644 --- a/doc/src/sgml/storage.sgml +++ b/doc/src/sgml/storage.sgml @@ -1,4 +1,4 @@ - + @@ -134,8 +134,7 @@ or index's filenode number, which can be found in main file (aka. main fork), a free space map (see ) that stores information about free space available in the relation, is stored in a file named after the filenode -number, with the the _1 suffix. For example, if the table's filenode number -is 12345, the FSM file is named 12345_1. +number, with the the _fsm suffix. @@ -385,9 +384,9 @@ comparison table, in which all the HTML pages were cut down to 7 kB to fit. A Free Space Map is stored with every heap and index relation, except for hash indexes, to keep track of available space in the relation. It's stored along the main relation data, in a separate FSM relation fork, named after -relfilenode of the relation, but with a _1 suffix. For example, +relfilenode of the relation, but with a _fsm suffix. For example, if the relfilenode of a relation is 12345, the FSM is stored in a file called -12345_1, in the same directory as the main relation file. +12345_fsm, in the same directory as the main relation file. -- cgit v1.2.3