Print b-tree tuples

Samuel Vogel <s@muel-vogel.de>

From: Samuel Vogel <s@muel-vogel.de>
To: pgsql-hackers@postgresql.org
Date: 2013-01-03T16:48:26Z
Lists: pgsql-hackers

Attachments

Hello,

I'm trying to print out the tuples in the b-tree nodes for analysis, but 
when iterate over more than the first entry of the tuples (scanKey++), I 
strangely get the error below on query execution:
ERROR:  relation "simpletest" does not exist
LINE 1: SELECT * FROM simpletest WHERE id = 50;

Any help with reviewing my my small attached patch would be greatly 
appreciated!

Regards,
Samuel Vogel