Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

Next:From: Hari BabuDate: 2013-01-04 12:43:08
Subject: 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:From: Pavel StehuleDate: 2013-01-04 09:48:03
Subject: lock AccessShareLock on object 0/1260/0 is already held

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group