Re: Multiple table entries?

From: Jeff Ross <jross(at)wykids(dot)org>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Multiple table entries?
Date: 2009-08-23 13:18:17
Message-ID: 4A914199.4050302@wykids.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greg Stark wrote:
> On Sun, Aug 23, 2009 at 4:06 AM, Jeff Ross<jross(at)wykids(dot)org> wrote:
>
>> Greg Stark wrote:
>>
>
>
>>> Actually, I wonder if this isn't more likely to show the problem -- it
>>> would explain why *all* your tables are showing up with duplicates
>>> rather than just one.
>>>
>>> select xmin,xmax,ctid,oid,* from pg_namespace
>>>
>> http://openvistas.net/pg_namespace_query.html
>>
>
> Yeah, that's a problem. Would you be able to load the pageinspect
> contrib module and run a query?
>
> select (h).* from (select
> heap_page_items(get_raw_page('pg_namespace',0)) as h from p) as x;
>
>
>
>

I had to modify your query slightly to make it run--hope I got what you
are after!

select (h).* from (select
heap_page_items(get_raw_page('pg_namespace',0)) as h) as x;

http://www.openvistas.net/pageinspect.html

Thanks,

Jeff

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Denis BUCHER 2009-08-23 13:23:29 Re: Strange "missing tables" problem
Previous Message Denis BUCHER 2009-08-23 12:54:55 Re: Strange "missing tables" problem