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

Function _PG_init

contrib/ltree_plpython/ltree_plpython.c:21–31  ·  view source on GitHub ↗

* Module initialize function: fetch function pointers for cross-module calls. */

Source from the content-addressed store, hash-verified

19 * Module initialize function: fetch function pointers for cross-module calls.
20 */
21void
22_PG_init(void)
23{
24 /* Asserts verify that typedefs above match original declarations */
25#if PY_MAJOR_VERSION >= 3
26 AssertVariableIsOfType(&PLyUnicode_FromStringAndSize, PLyUnicode_FromStringAndSize_t);
27 PLyUnicode_FromStringAndSize_p = (PLyUnicode_FromStringAndSize_t)
28 load_external_function("$libdir/" PLPYTHON_LIBNAME, "PLyUnicode_FromStringAndSize",
29 true, NULL);
30#endif
31}
32
33
34/* These defines must be after the module init function */

Callers

nothing calls this directly

Calls 1

load_external_functionFunction · 0.85

Tested by

no test coverage detected