Fix contrib/pgstattuple and contrib/pageinspect to prevent attempts to read
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 31 Mar 2009 22:56:05 +0000 (22:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 31 Mar 2009 22:56:05 +0000 (22:56 +0000)
commitdb0ba8022653b9e87887bf34c4bf69d484053b1b
tree81526f3aa49801159325bdf4f23abc0c203dc4b5
parent477a6c165023ea0cf974f8e95ed34566d1589ed0
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/pgstattuple.c