/* lexize(text, text) */ Datum tsa_lexize_byname(PG_FUNCTION_ARGS) { text *dictname = PG_GETARG_TEXT_P(0); Datum arg1 = PG_GETARG_DATUM(1); return DirectFunctionCall2(ts_lexize, ObjectIdGetDatum(TextGetObjectId(regdictionaryin, dictname)), arg1); }
/* lexize(text, text) */ datum_t tsa_lexize_byname(PG_FUNC_ARGS) { text *dictname = ARG_TEXT_PP(0); datum_t arg1 = ARG_DATUM(1); return DIRECT_FC2(ts_lexize, OID_TO_D(TextGetObjectId(regdictionaryin, dictname)), arg1); }
/* plainto_tsquery(text, text) */ Datum tsa_plainto_tsquery_name(PG_FUNCTION_ARGS) { text *cfgname = PG_GETARG_TEXT_P(0); Datum arg1 = PG_GETARG_DATUM(1); Oid config_oid; config_oid = TextGetObjectId(regconfigin, cfgname); return DirectFunctionCall2(plainto_tsquery_byid, ObjectIdGetDatum(config_oid), arg1); }
/* plainto_tsquery(text, text) */ datum_t tsa_plainto_tsquery_name(PG_FUNC_ARGS) { text *cfgname = ARG_TEXT_PP(0); datum_t arg1 = ARG_DATUM(1); oid_t config_oid; config_oid = TextGetObjectId(regconfigin, cfgname); return DIRECT_FC2(plainto_tsquery_byid, OID_TO_D(config_oid), arg1); }