Re: Fixed length datatypes. WAS [GENERAL] UUID's as

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fixed length datatypes. WAS [GENERAL] UUID's as
Дата
Msg-id 24185.1151766924@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Fixed length datatypes. WAS [GENERAL] UUID's as  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> writes:
> On Sat, Jul 01, 2006 at 10:37:59AM -0400, Tom Lane wrote:
>> The output function, however, would be quite a trick.
>> It's not going to receive anything except the Datum itself.

> Hmm, you're right. With the taggedtypes module I made it work by
> cloning the output function with a new OID each time and setting the
> arg type so that procLookupArgType() would work. Similarly, the input
> function would use procLookupRettype() to find the desired type.

Oh, I see, you relied on flinfo->fn_oid and then did two cat lookups.
That would work as long as nothing tried to call the function with
DirectFunctionCall ... which is a pretty safe assumption I guess.
        regards, tom lane


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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Fixed length datatypes. WAS [GENERAL] UUID's as
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fixed length datatypes. WAS [GENERAL] UUID's as