Re: Print b-tree tuples

From: Samuel Vogel <s(at)muel-vogel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Print b-tree tuples
Date: 2013-01-04 12:00:21
Message-ID: 50E6C455.90009@muel-vogel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hari Babu 2013-01-04 12:43:08 Re: Review of "pg_basebackup and pg_receivexlog to use non-blocking socket communication", was: Re: Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w breakdown
Previous Message Pavel Stehule 2013-01-04 09:48:03 lock AccessShareLock on object 0/1260/0 is already held