Datum DumpMDCastDXL(PG_FUNCTION_ARGS) { Oid oidSrc = gpdb::OidFromDatum(PG_GETARG_DATUM(0)); Oid oidDest = gpdb::OidFromDatum(PG_GETARG_DATUM(1)); char *szDXL = COptTasks::SzMDCast(ListMake2Oid(oidSrc, oidDest)); PG_RETURN_TEXT_P(stringToText(szDXL)); }
Datum DumpMDCastDXL(PG_FUNCTION_ARGS) { Oid oidSrc = gpdb::OidFromDatum(PG_GETARG_DATUM(0)); Oid oidDest = gpdb::OidFromDatum(PG_GETARG_DATUM(1)); char *dxl_string = COptTasks::SzMDCast(ListMake2Oid(oidSrc, oidDest)); PG_RETURN_TEXT_P(cstring_to_text(dxl_string)); }
Datum DumpMDScCmpDXL(PG_FUNCTION_ARGS) { Oid oidLeft = gpdb::OidFromDatum(PG_GETARG_DATUM(0)); Oid oidRight = gpdb::OidFromDatum(PG_GETARG_DATUM(1)); char *szCmpType = textToString(PG_GETARG_TEXT_P(2)); char *szDXL = COptTasks::SzMDScCmp(ListMake2Oid(oidLeft, oidRight), szCmpType); PG_RETURN_TEXT_P(stringToText(szDXL)); }
Datum DumpMDScCmpDXL(PG_FUNCTION_ARGS) { Oid oidLeft = gpdb::OidFromDatum(PG_GETARG_DATUM(0)); Oid oidRight = gpdb::OidFromDatum(PG_GETARG_DATUM(1)); char *szCmpType = text_to_cstring(PG_GETARG_TEXT_P(2)); char *dxl_string = COptTasks::SzMDScCmp(ListMake2Oid(oidLeft, oidRight), szCmpType); PG_RETURN_TEXT_P(cstring_to_text(dxl_string)); }