Re: How to modify ENUM datatypes?
От
Joshua D. Drake
Тема
Re: How to modify ENUM datatypes?
Дата
Msg-id
20080422142822.4b247c78@commandprompt.com
Ответ на
Re: How to modify ENUM datatypes? (D. Dante Lorenso)
Список
Дерево обсуждения
Re: How to modify ENUM datatypes? Chris Browne <cbbrowne@acm.org>
Re: How to modify ENUM datatypes? "Scott Marlowe" <scott.marlowe@gmail.com>
Re: How to modify ENUM datatypes? "David Wilson" <david.t.wilson@gmail.com>
Re: How to modify ENUM datatypes? Tom Lane <tgl@sss.pgh.pa.us>
Re: How to modify ENUM datatypes? "Rob Wultsch" <wultsch@gmail.com>
Re: How to modify ENUM datatypes? Andrew Sullivan <ajs@commandprompt.com>
Re: How to modify ENUM datatypes? Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>
Re: How to modify ENUM datatypes? Martijn van Oosterhout <kleptog@svana.org>
Re: How to modify ENUM datatypes? Tino Wildenhain <tino@wildenhain.de>
Re: How to modify ENUM datatypes? Andrew Sullivan <ajs@commandprompt.com>
On Tue, 22 Apr 2008 15:45:39 -0500 "D. Dante Lorenso" wrote: > I was really hoping that it would be more efficient to not have to do > all the foreign keys and joins for tables that may have 4-5 enum > types. > > Just being able to: > > SELECT * > FROM tablename > > would be nice if my columns contained enums instead of doing: > > SELECT * > FROM tablename, lookuptable > WHERE tablename.some_id = lookuptable.some_id > > Isn't the join more expensive? You were using natural keys, the join would not be required. Joshua D. Drake > > -- Dante > -- The PostgreSQL Company since 1997: http://www.commandprompt.com/ PostgreSQL Community Conference: http://www.postgresqlconference.org/ United States PostgreSQL Association: http://www.postgresql.us/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
В списке pgsql-general по дате отправления
От: Scott Marlowe
Дата: