Fix contrib/pgstattuple and contrib/pageinspect to prevent attempts to read
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 31 Mar 2009 22:54:52 +0000 (22:54 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 31 Mar 2009 22:54:52 +0000 (22:54 +0000)
commit9a6e3dfb23da8f4801d36e0285f11e593abf1b7a
tree187d7395e394f493137f9a884fe20db4216899ac
parent0ccc457a75bd526bb15a4b07111ae60725e72ba3
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/pageinspect/btreefuncs.c
contrib/pageinspect/rawpage.c
contrib/pgstattuple/pgstatindex.c
contrib/pgstattuple/pgstattuple.c