pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <peter@2ndquadrant.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: "no relation entry for relid 1"
Date: Thu, 29 Sep 2011 18:15:50 -0400
Message-ID: <22184.1317334550@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEYLb_Wn2_6g7hJU=PHmo10qqFbrh5xyks2UmuhESeC143-+Xg@mail.gmail.com>
References: <CAEYLb_Wn2_6g7hJU=PHmo10qqFbrh5xyks2UmuhESeC143-+Xg@mail.gmail.com>

Peter Geoghegan <peter@2ndquadrant.com> writes:
> I've built Postgres from master, and found that the following fairly
> simple query breaks:

> select count(*)
> from
> (
> 	select
> 	schemaname
> 	from		pg_stat_user_tables
> 	order by 	1	
> ) sub
> group by schemaname

> This produces the internal error message "no relation entry for relid
> 1". Why is that?

Looks like I broke it here:

http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=1cb108efb0e60d87e4adec38e7636b6e8e...

Fixed, thanks for the report!

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <22184.1317334550@sss.pgh.pa.us>
Permalink:  ../22184.1317334550@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22184.1317334550@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter@2ndquadrant.com
  Subject: Re: "no relation entry for relid 1"
  In-Reply-To: <22184.1317334550@sss.pgh.pa.us>
  References: <CAEYLb_Wn2_6g7hJU=PHmo10qqFbrh5xyks2UmuhESeC143-+Xg@mail.gmail.com> <22184.1317334550@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox