pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #5836: Enum Support Functions don't work on empty tables
2+ messages / 2 participants
[nested] [flat]
* BUG #5836: Enum Support Functions don't work on empty tables
@ 2011-01-13 17:33 David Pinheiro <davidsantospinheiro@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: David Pinheiro @ 2011-01-13 17:33 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 5836
Logged by: David Pinheiro
Email address: davidsantospinheiro@gmail.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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #5836: Enum Support Functions don't work on empty tables
@ 2011-01-13 18:43 Tom Lane <tgl@sss.pgh.pa.us>
parent: David Pinheiro <davidsantospinheiro@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2011-01-13 18:43 UTC (permalink / raw)
To: David Pinheiro <davidsantospinheiro@gmail.com>; +Cc: pgsql-bugs
"David Pinheiro" <davidsantospinheiro@gmail.com> 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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-01-13 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-01-13 17:33 BUG #5836: Enum Support Functions don't work on empty tables David Pinheiro <davidsantospinheiro@gmail.com>
2011-01-13 18:43 ` Tom Lane <tgl@sss.pgh.pa.us>
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