19 #include "utils/fmgrprotos.h"
34 bool stoploaded =
false,
40 foreach(l, dictoptions)
44 if (strcmp(defel->
defname,
"stopwords") == 0)
48 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
49 errmsg(
"multiple StopWords parameters")));
53 else if (strcmp(defel->
defname,
"accept") == 0)
57 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
58 errmsg(
"multiple Accept parameters")));
65 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
66 errmsg(
"unrecognized simple dictionary parameter: \"%s\"",
static void PGresult * res
bool defGetBoolean(DefElem *def)
char * defGetString(DefElem *def)
Datum dsimple_lexize(PG_FUNCTION_ARGS)
Datum dsimple_init(PG_FUNCTION_ARGS)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_GETARG_POINTER(n)
#define PG_GETARG_INT32(n)
#define PG_RETURN_POINTER(x)
void pfree(void *pointer)
void * palloc0(Size size)
char * lowerstr_with_len(const char *str, int len)
char * lowerstr(const char *str)
void readstoplist(const char *fname, StopList *s, char *(*wordop)(const char *))
bool searchstoplist(StopList *s, char *key)