* Invalidate job cache ensures the job cache is reloaded on the next * iteration of pg_cron. */
| 388 | * iteration of pg_cron. |
| 389 | */ |
| 390 | static void |
| 391 | InvalidateJobCache(void) |
| 392 | { |
| 393 | HeapTuple classTuple = NULL; |
| 394 | |
| 395 | classTuple = SearchSysCache1(RELOID, ObjectIdGetDatum(TaskRelationId)); |
| 396 | if (HeapTupleIsValid(classTuple)) |
| 397 | { |
| 398 | CacheInvalidateRelcacheByTuple(classTuple); |
| 399 | ReleaseSysCache(classTuple); |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | /* |
| 404 | * InvalidateJobCacheCallback invalidates the job cache in response to |
no test coverage detected