Re: [9.2] Confusion over CacheRegisterSyscacheCallback

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [9.2] Confusion over CacheRegisterSyscacheCallback
Дата
Msg-id 29912.1331050238@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [9.2] Confusion over CacheRegisterSyscacheCallback  (Marko Kreen <markokr@gmail.com>)
Ответы Re: [9.2] Confusion over CacheRegisterSyscacheCallback
Список pgsql-hackers
Marko Kreen <markokr@gmail.com> writes:
> So my question is that after doing generic SearchSysCache() like:

>    tup = SearchSysCache(USERMAPPINGUSERSERVER,
>         ObjectIdGetDatum(user_mapping->userid),
>         ObjectIdGetDatum(foreign_server->serverid),
>         0, 0);

> what is the proper way to calculate the hashValue that 
> will be given to callback?

Why would you need to know that?  The reason the calculation function
is static is that there's no apparent need to expose that information
outside the syscache subsystem.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Checksums, state of play
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Dropping PL language retains support functions