Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZN9VY-0007wM-OM for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Aug 2015 00:58:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZN9VY-0006X6-9M for pgsql-bugs@arkaria.postgresql.org; Thu, 06 Aug 2015 00:58:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZN9VX-0006WU-6g for pgsql-bugs@postgresql.org; Thu, 06 Aug 2015 00:58:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZN9VT-0001oW-Q2 for pgsql-bugs@postgresql.org; Thu, 06 Aug 2015 00:58:06 +0000 MIME-Version: 1.0 Subject: BUG #13539: ERROR: record type has not been registered with CTE and subselect in target list To: pgsql-bugs@postgresql.org From: maciek@heroku.com Date: Thu, 06 Aug 2015 00:57:21 +0000 Message-ID: <20150806005721.855.4383@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 13539 Logged by: Maciek Sakrejda Email address: maciek@heroku.com PostgreSQL version: 9.4.4 Operating system: Ubuntu 15.04 Description: I'm not sure if this is a legitimate bug, but the error message is unclear. I've searched for this message and have seen reports of similar errors, but the SQL is somewhat different, so I thought I'd report it: maciek=# with foo(a) as (select 1) select (select (foo) from foo).* from foo; ERROR: record type has not been registered I know how to work around it; just reporting it in the hope of maybe getting a clearer error. Thanks! -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs