57 elog(
ERROR,
"method lextype isn't defined for text search parser %u",
312 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
313 errmsg(
"text search parser does not support headline creation")));
400 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
401 errmsg(
"text search parser does not support headline creation")));
477 (
errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
478 errmsg(
"text search parser does not support headline creation")));
#define PG_RETURN_POINTER(x)
struct HeadlineJsonState HeadlineJsonState
static Datum prs_process_call(FuncCallContext *funcctx)
Datum ts_headline_byid(PG_FUNCTION_ARGS)
Datum ts_headline_jsonb_opt(PG_FUNCTION_ARGS)
TupleDesc CreateTemplateTupleDesc(int natts)
Oid getTSCurrentConfig(bool emitError)
TSParserCacheEntry * prsobj
#define SRF_IS_FIRSTCALL()
#define PointerGetDatum(X)
#define PG_GETARG_DATUM(n)
#define PG_GETARG_TSQUERY(n)
List * deserialize_deflist(Datum txt)
Datum ts_headline_json(PG_FUNCTION_ARGS)
static MemoryContext MemoryContextSwitchTo(MemoryContext context)
#define FunctionCall2(flinfo, arg1, arg2)
int errcode(int sqlerrcode)
Datum ts_token_type_byid(PG_FUNCTION_ARGS)
#define PG_GETARG_POINTER(n)
TSParserCacheEntry * lookup_ts_parser_cache(Oid prsId)
#define OidIsValid(objectId)
#define SRF_PERCALL_SETUP()
HeapTuple BuildTupleFromCStrings(AttInMetadata *attinmeta, char **values)
#define PG_GETARG_TEXT_PP(n)
#define FunctionCall3(flinfo, arg1, arg2, arg3)
#define SRF_RETURN_NEXT(_funcctx, _result)
Datum ts_parse_byid(PG_FUNCTION_ARGS)
void pfree(void *pointer)
#define ObjectIdGetDatum(X)
Datum ts_headline_byid_opt(PG_FUNCTION_ARGS)
Datum ts_headline_opt(PG_FUNCTION_ARGS)
text * transform_json_string_values(text *json, void *action_state, JsonTransformStringValuesAction transform_action)
TSConfigCacheEntry * lookup_ts_config_cache(Oid cfgId)
Datum ts_parse_byname(PG_FUNCTION_ARGS)
#define OidFunctionCall1(functionId, arg1)
Datum ts_token_type_byname(PG_FUNCTION_ARGS)
static Datum tt_process_call(FuncCallContext *funcctx)
Datum ts_headline(PG_FUNCTION_ARGS)
Jsonb * transform_jsonb_string_values(Jsonb *jsonb, void *action_state, JsonTransformStringValuesAction transform_action)
#define DirectFunctionCall4(func, arg1, arg2, arg3, arg4)
HeadlineWordEntry * words
AttInMetadata * attinmeta
Datum ts_headline_jsonb_byid(PG_FUNCTION_ARGS)
void TupleDescInitEntry(TupleDesc desc, AttrNumber attributeNumber, const char *attributeName, Oid oidtypeid, int32 typmod, int attdim)
Datum ts_headline_json_byid_opt(PG_FUNCTION_ARGS)
List * textToQualifiedNameList(text *textval)
#define DirectFunctionCall3(func, arg1, arg2, arg3)
static void tt_setup_firstcall(FuncCallContext *funcctx, Oid prsid)
void * palloc0(Size size)
#define PG_RETURN_DATUM(x)
AttInMetadata * TupleDescGetAttInMetadata(TupleDesc tupdesc)
#define ereport(elevel,...)
#define PG_RETURN_TEXT_P(x)
text * generateHeadline(HeadlineParsedText *prs)
Oid get_ts_parser_oid(List *names, bool missing_ok)
static void prs_setup_firstcall(FuncCallContext *funcctx, Oid prsid, text *txt)
void hlparsetext(Oid cfgId, HeadlineParsedText *prs, TSQuery query, char *buf, int buflen)
MemoryContext multi_call_memory_ctx
static text * headline_json_value(void *_state, char *elem_value, int elem_len)
#define PG_FREE_IF_COPY(ptr, n)
#define HeapTupleGetDatum(tuple)
void * repalloc(void *pointer, Size size)
#define DatumGetPointer(X)
static Datum values[MAXATTR]
Datum ts_headline_jsonb_byid_opt(PG_FUNCTION_ARGS)
Datum ts_headline_json_opt(PG_FUNCTION_ARGS)
#define VARSIZE_ANY_EXHDR(PTR)
int errmsg(const char *fmt,...)
#define PG_GETARG_TEXT_P(n)
Datum ts_headline_jsonb(PG_FUNCTION_ARGS)
#define FunctionCall1(flinfo, arg1)
#define PG_RETURN_JSONB_P(x)
text *(* JsonTransformStringValuesAction)(void *state, char *elem_value, int elem_len)
#define SRF_RETURN_DONE(_funcctx)
#define PG_GETARG_JSONB_P(x)
Datum ts_headline_json_byid(PG_FUNCTION_ARGS)
#define SRF_FIRSTCALL_INIT()