PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "commands/defrem.h"
#include "tsearch/ts_locale.h"
#include "tsearch/ts_public.h"
#include "utils/fmgrprotos.h"
Go to the source code of this file.
Data Structures | |
struct | Syn |
struct | DictSyn |
Functions | |
static char * | findwrd (char *in, char **end, uint16 *flags) |
static int | compareSyn (const void *a, const void *b) |
Datum | dsynonym_init (PG_FUNCTION_ARGS) |
Datum | dsynonym_lexize (PG_FUNCTION_ARGS) |
|
static |
Definition at line 85 of file dict_synonym.c.
Referenced by dsynonym_init(), and dsynonym_lexize().
Datum dsynonym_init | ( | PG_FUNCTION_ARGS | ) |
Definition at line 92 of file dict_synonym.c.
References DictSyn::case_sensitive, compareSyn(), cur, defGetBoolean(), defGetString(), DefElem::defname, ereport, errcode(), errmsg(), ERROR, filename, findwrd(), Syn::flags, get_tsearch_config_filename(), Syn::in, DictSyn::len, lfirst, lowerstr(), Syn::out, Syn::outlen, palloc(), palloc0(), pfree(), PG_GETARG_POINTER, PG_RETURN_POINTER, pstrdup(), qsort, repalloc(), DictSyn::syn, tsearch_readline(), tsearch_readline_begin(), and tsearch_readline_end().
Datum dsynonym_lexize | ( | PG_FUNCTION_ARGS | ) |
Definition at line 210 of file dict_synonym.c.
References DictSyn::case_sensitive, compareSyn(), Syn::flags, sort-test::key, DictSyn::len, len, lowerstr_with_len(), Syn::out, Syn::outlen, palloc0(), pfree(), PG_GETARG_INT32, PG_GETARG_POINTER, PG_RETURN_POINTER, pnstrdup(), res, and DictSyn::syn.
|
static |
Definition at line 44 of file dict_synonym.c.
References pg_mblen(), start, t_iseq, t_isspace(), and TSL_PREFIX.
Referenced by dsynonym_init().