16#include "catalog/pg_collation_d.h"
19#include "utils/fmgrprotos.h"
35 bool stoploaded =
false,
41 foreach(l, dictoptions)
45 if (strcmp(defel->
defname,
"stopwords") == 0)
49 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
50 errmsg(
"multiple StopWords parameters")));
54 else if (strcmp(defel->
defname,
"accept") == 0)
58 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
59 errmsg(
"multiple Accept parameters")));
66 (
errcode(ERRCODE_INVALID_PARAMETER_VALUE),
67 errmsg(
"unrecognized simple dictionary parameter: \"%s\"",
static void PGresult * res
char * defGetString(DefElem *def)
bool defGetBoolean(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)
void readstoplist(const char *fname, StopList *s, char *(*wordop)(const char *, size_t, Oid))
bool searchstoplist(StopList *s, char *key)