Re: 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-04T12:00:21Z
Lists: pgsql-hackers
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;
I was able to get around this by only printing byval attributes:

if (!itupdesc->attrs[i-1]->attbyval)
             break;

I would still like to know why my code screws up though. The relnames 
are not byval, but I should still be able to print the address, right?

Regards,
Samuel