]> granicus.if.org Git - postgresql/commit
Fix contrib/pageinspect to not create an ABI breakage between 8.3 and 8.4.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Jun 2009 16:22:44 +0000 (16:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Jun 2009 16:22:44 +0000 (16:22 +0000)
commita1fd650d2be769cdc0b163177b938e07ddad8ddb
tree7a3e59feb5015ca5606021ed054cf2005fa218a2
parent506183e485732e0e76cedb8db0e9ef514c34cba8
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.
contrib/pageinspect/pageinspect.sql.in
contrib/pageinspect/rawpage.c
contrib/pageinspect/uninstall_pageinspect.sql
doc/src/sgml/pageinspect.sgml