BUG #5836: Enum Support Functions don't work on empty tables

From: "David Pinheiro" <davidsantospinheiro(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5836: Enum Support Functions don't work on empty tables
Date: 2011-01-13 17:33:11
Message-ID: 201101131733.p0DHXBWs056451@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5836
Logged by: David Pinheiro
Email address: davidsantospinheiro(at)gmail(dot)com
PostgreSQL version: 8.4
Operating system: Centos
Description: Enum Support Functions don't work on empty tables
Details:

The functions referred on Table 9-29 in
http://www.postgresql.org/docs/9.0/static/functions-enum.html don't work on
empty tables.

Example: If you have an empty table and you query:
SELECT enum_range("enum_table_column") from "table_name";
postgres returns an empty result.
If the table has some element, the query works ok.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2011-01-13 18:09:42 Re: BUG #5834: Planner - cost for hash scan too small
Previous Message Julien Demoor 2011-01-13 13:57:29 BUG #5835: PL/Python crashes