Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id F3C48B5DBC4 for ; Thu, 29 Sep 2011 19:16:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 64245-10 for ; Thu, 29 Sep 2011 22:15:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id F2552B5DBC0 for ; Thu, 29 Sep 2011 19:15:53 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p8TMFokP022185; Thu, 29 Sep 2011 18:15:50 -0400 (EDT) To: Peter Geoghegan cc: pgsql-bugs@postgresql.org Subject: Re: "no relation entry for relid 1" In-reply-to: References: Comments: In-reply-to Peter Geoghegan message dated "Thu, 29 Sep 2011 21:26:36 +0100" Date: Thu, 29 Sep 2011 18:15:50 -0400 Message-ID: <22184.1317334550@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/240 X-Sequence-Number: 31257 Peter Geoghegan 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=1cb108efb0e60d87e4adec38e7636b6e8efbeb57 Fixed, thanks for the report! regards, tom lane