Fix contrib/pgstattuple and contrib/pageinspect to prevent attempts to read

Tom Lane <tgl@sss.pgh.pa.us>

Commit: af4ebb272e21dec5cb59223ea2ac95d82900ad77
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-03-31T22:56:05Z
Releases: 8.1.18
Fix contrib/pgstattuple and contrib/pageinspect to prevent attempts to read
temporary tables of other sessions; that is unsafe because of the way our
buffer management works.  Per report from Stuart Bishop.
This is redundant with the bufmgr.c checks in HEAD, but not at all redundant
in the back branches.

Files

PathChange+/−
contrib/pgstattuple/pgstattuple.c modified +11 −1