Fix contrib/pgstattuple and contrib/pageinspect to prevent attempts to read
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 31 Mar 2009 22:55:41 +0000 (22:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 31 Mar 2009 22:55:41 +0000 (22:55 +0000)
commitb7578b5ce2b873bb6afe2fd64ab80674ea4e2237
tree4e672047c516b29ac0daf0c0459bece225063ae5
parentb251244f856710bed9593dfcfd64d78c01f14901
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.
contrib/pgstattuple/pgstatindex.c
contrib/pgstattuple/pgstattuple.c