Re: [9.2] Confusion over CacheRegisterSyscacheCallback

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marko Kreen <markokr(at)gmail(dot)com>
Cc: Postgres Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [9.2] Confusion over CacheRegisterSyscacheCallback
Date: 2012-03-06 16:10:38
Message-ID: 29912.1331050238@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marko Kreen <markokr(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2012-03-06 16:26:50 Re: Dropping PL language retains support functions
Previous Message Robert Haas 2012-03-06 16:09:28 Re: Checksums, state of play