From a1fd650d2be769cdc0b163177b938e07ddad8ddb Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 8 Jun 2009 16:22:44 +0000 Subject: Fix contrib/pageinspect to not create an ABI breakage between 8.3 and 8.4. The original implementation of the 3-argument form of get_raw_page() risked core dumps if the 8.3 SQL function definition was mistakenly used with the 8.4 module, which is entirely likely after a dump-and-reload upgrade. To protect 8.4 beta testers against upgrade problems, add a check on PG_NARGS. In passing, fix missed additions to the uninstall script, and polish the docs a trifle. --- doc/src/sgml/pageinspect.sgml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/pageinspect.sgml b/doc/src/sgml/pageinspect.sgml index e510d202aa4..a81989a2a35 100644 --- a/doc/src/sgml/pageinspect.sgml +++ b/doc/src/sgml/pageinspect.sgml @@ -1,4 +1,4 @@ - + pageinspect @@ -27,8 +27,9 @@ 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. - fork should be 'main' for the main - data fork, or 'fsm' for the FSM. + fork should be 'main' for + the main data fork, or 'fsm' for the free space map, + or 'vm' for the visibility map. @@ -40,8 +41,9 @@ - A shorthand of above, for reading from the main fork. Equal to - get_raw_page(relname, 0, blkno) + A shorthand version of get_raw_page, for reading + from the main fork. Equivalent to + get_raw_page(relname, 'main', blkno) -- cgit v1.2.3