Search Postgresql Archives

Re: Pulling data from a constraint def

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 13, 2010 at 08:08:31PM -0400, Tom Lane wrote:
> David Fetter <david@xxxxxxxxxx> writes:
> > On Thu, May 13, 2010 at 12:33:08AM -0400, Tom Lane wrote:
> >> I'm surprised no one has yet suggested an ENUM type.
> 
> > I didn't suggest it because I didn't know about it, but because
> > I've found ENUM to be a trap for the unwary.
> 
> > Very seldom are people absolutely certain that they'll have one
> > particular list of things forever.  The list may grow or shrink,
> > or the order may change, and in those cases where the list changes
> > somehow, ENUM causes more problems than it solves.
> 
> Well, the inability to change the list of values is certainly an
> unpleasant limitation, but is it so fatal that we should hide the
> feature from people who could possibly use it?  I think not.

It's enough of a foot-gun that I would not even mention it to start
with, except to discuss its problems.

Cheers,
David.
-- 
David Fetter <david@xxxxxxxxxx> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@xxxxxxxxx
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux