Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 213631337B98 for ; Thu, 13 Jan 2011 14:43:33 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 30645-03 for ; Thu, 13 Jan 2011 18:43:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id AB2FE1337B95 for ; Thu, 13 Jan 2011 14:43:25 -0400 (AST) 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 p0DIhNgQ020575; Thu, 13 Jan 2011 13:43:23 -0500 (EST) To: "David Pinheiro" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5836: Enum Support Functions don't work on empty tables In-reply-to: <201101131733.p0DHXBWs056451@wwwmaster.postgresql.org> References: <201101131733.p0DHXBWs056451@wwwmaster.postgresql.org> Comments: In-reply-to "David Pinheiro" message dated "Thu, 13 Jan 2011 17:33:11 +0000" Date: Thu, 13 Jan 2011 13:43:23 -0500 Message-ID: <20574.1294944203@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/96 X-Sequence-Number: 29118 "David Pinheiro" writes: > Example: If you have an empty table and you query: > SELECT enum_range("enum_table_column") from "table_name"; > postgres returns an empty result. That doesn't seem like a bug. No rows in, no rows out. regards, tom lane