Re: polymorphic arguments and return type for PL/pgSQL

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: polymorphic arguments and return type for PL/pgSQL
Дата
Msg-id 3F00842F.4010508@joeconway.com
обсуждение исходный текст
Ответ на Re: polymorphic arguments and return type for PL/pgSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
Tom Lane wrote:
> The latter.  By the time you pay the price of a hash lookup, a slightly
> longer key is nearly free.  (Maybe entirely free, since it might produce
> better-distributed hash values.)

OK -- I figured that's what you'd say, so I've already started down that
road.

> dynahash only supports fixed-length keys, so don't forget to zero out
> unused positions in the argument type vector.

Important safety tip! Thanks.

> BTW, I can't see any need to include the return type in the hash key ---
> wouldn't it be predetermined given the argument types?

Yup, very true.

Thanks,

Joe


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: polymorphic arguments and return type for PL/pgSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Missing array support