Custom Data Type Question

Поиск
Список
Период
Сортировка
От Greg Mitchell
Тема Custom Data Type Question
Дата
Msg-id 455B842D.6000007@atdesk.com
обсуждение исходный текст
Ответы Re: Custom Data Type Question  (Andrew Dunstan <andrew@dunslane.net>)
Re: Custom Data Type Question  (Tom Dunstan <pgsql@tomd.cc>)
Список pgsql-hackers
I'm trying to create a custom data type similar to an enumeration type. 
However, I'd like the mapping of the int<->string to be dynamic instead 
of hard coded. I'd like to have a table that contains this mapping that 
can be appended to. Creating this type is not very difficult. However, 
for performance reasons, I'd like to cache the mapping so that the table 
is only queried once every connection unless it changes. I'm thinking a 
combination of a flag that can be triggered on insert and a transaction 
id could be used to decide if the table needs to be reloaded. 
Unfortunately, I'm not exactly sure how to get started on this, any ideas?

Thanks,
Greg


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [SQL] Case Preservation disregarding case
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Custom Data Type Question