mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
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.
This commit is contained in:
@ -964,8 +964,7 @@ _copyPlanInvalItem(PlanInvalItem *from)
|
||||
PlanInvalItem *newnode = makeNode(PlanInvalItem);
|
||||
|
||||
COPY_SCALAR_FIELD(cacheId);
|
||||
/* tupleId isn't really a "scalar", but this works anyway */
|
||||
COPY_SCALAR_FIELD(tupleId);
|
||||
COPY_SCALAR_FIELD(hashValue);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user