* CatalogCacheCompareTuple * * Compare a tuple to the passed arguments. */
| 372 | * Compare a tuple to the passed arguments. |
| 373 | */ |
| 374 | static inline bool |
| 375 | CatalogCacheCompareTuple(const CatCache *cache, int nkeys, |
| 376 | const Datum *cachekeys, |
| 377 | const Datum *searchkeys) |
| 378 | { |
| 379 | const CCFastEqualFN *cc_fastequal = cache->cc_fastequal; |
| 380 | int i; |
| 381 | |
| 382 | for (i = 0; i < nkeys; i++) |
| 383 | { |
| 384 | if (!(cc_fastequal[i]) (cachekeys[i], searchkeys[i])) |
| 385 | return false; |
| 386 | } |
| 387 | return true; |
| 388 | } |
| 389 | |
| 390 | |
| 391 | #ifdef CATCACHE_STATS |
no outgoing calls
no test coverage detected