Re: extensible enum types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: extensible enum types
Дата
Msg-id 10080.1276974195@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: extensible enum types  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: extensible enum types  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Another thought: could we add a column to pg_type with a flag that's 
> true if the oids are in sort order? Then the comparison routines could 
> just look that up in the type cache and if it's true (as it often will 
> be) just return the oid comparison.

Well, having to do a cache lookup already makes it a couple orders of
magnitude more expensive than an OID comparison.  However, it's hard to
say how much that matters in terms of total application performance.
We really could do with a bit of performance testing here ...
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: extensible enum types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: beta3 & the open items list