diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-08-16 19:27:46 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-08-16 19:27:46 -0400 |
commit | b5282aa893e565b7844f8237462cb843438cdd5e (patch) | |
tree | b19170597a0a94685cc8c978c1c5800c411d02d1 /src/backend/utils/cache/ts_cache.c | |
parent | 632ae6829f7abda34e15082c91d9dfb3fc0f298b (diff) | |
download | postgresql-b5282aa893e565b7844f8237462cb843438cdd5e.tar.gz postgresql-b5282aa893e565b7844f8237462cb843438cdd5e.zip |
Revise sinval code to remove no-longer-used tuple TID from inval messages.
This requires adjusting the API for syscache callback functions: they now
get a hash value, not a TID, to identify the target tuple. Most of them
weren't paying any attention to that argument anyway, but plancache did
require a small amount of fixing.
Also, improve performance a trifle by avoiding sending duplicate inval
messages when a heap_update isn't changing the catcache lookup columns.
Diffstat (limited to 'src/backend/utils/cache/ts_cache.c')
-rw-r--r-- | src/backend/utils/cache/ts_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/cache/ts_cache.c b/src/backend/utils/cache/ts_cache.c index a8c4d76565a..cffa2384385 100644 --- a/src/backend/utils/cache/ts_cache.c +++ b/src/backend/utils/cache/ts_cache.c @@ -90,7 +90,7 @@ static Oid TSCurrentConfigCache = InvalidOid; * table address as the "arg". */ static void -InvalidateTSCacheCallBack(Datum arg, int cacheid, ItemPointer tuplePtr) +InvalidateTSCacheCallBack(Datum arg, int cacheid, uint32 hashvalue) { HTAB *hash = (HTAB *) DatumGetPointer(arg); HASH_SEQ_STATUS status; |