MCPcopy Create free account
hub / github.com/apache/cloudberry / PLy_procedure_valid

Function PLy_procedure_valid

src/pl/plpython/plpy_procedure.c:416–428  ·  view source on GitHub ↗

* Decide whether a cached PLyProcedure struct is still valid */

Source from the content-addressed store, hash-verified

414 * Decide whether a cached PLyProcedure struct is still valid
415 */
416static bool
417PLy_procedure_valid(PLyProcedure *proc, HeapTuple procTup)
418{
419 if (proc == NULL)
420 return false;
421
422 /* If the pg_proc tuple has changed, it's not valid */
423 if (!(proc->fn_xmin == HeapTupleHeaderGetRawXmin(procTup->t_data) &&
424 ItemPointerEquals(&proc->fn_tid, &procTup->t_self)))
425 return false;
426
427 return true;
428}
429
430static char *
431PLy_procedure_munge_source(const char *name, const char *src)

Callers 1

PLy_procedure_getFunction · 0.85

Calls 1

ItemPointerEqualsFunction · 0.85

Tested by

no test coverage detected