summaryrefslogtreecommitdiff
path: root/contrib/tsearch2/ts_cfg.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-11-13 21:02:29 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-11-13 21:02:29 +0000
commit90e3f2aca716e562f81a64dba5fb5232b140e4d7 (patch)
tree2040468fc9a6e902614d48b03912da6859e95bf7 /contrib/tsearch2/ts_cfg.h
parent4ea3210a04478163edf1ffd7d2547b62e82df4f0 (diff)
downloadpostgresql-90e3f2aca716e562f81a64dba5fb5232b140e4d7.tar.gz
Replace the now-incompatible-with-core contrib/tsearch2 module with a
compatibility package. This supports importing dumps from past versions using tsearch2, and provides the old names and API for most functions that were changed. (rewrite(ARRAY[...]) is a glaring omission, though.) Pavel Stehule and Tom Lane
Diffstat (limited to 'contrib/tsearch2/ts_cfg.h')
-rw-r--r--contrib/tsearch2/ts_cfg.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/contrib/tsearch2/ts_cfg.h b/contrib/tsearch2/ts_cfg.h
deleted file mode 100644
index 7bffdbcdd6..0000000000
--- a/contrib/tsearch2/ts_cfg.h
+++ /dev/null
@@ -1,78 +0,0 @@
-#ifndef __TS_CFG_H__
-#define __TS_CFG_H__
-
-#include "postgres.h"
-#include "query.h"
-
-
-typedef struct
-{
- int len;
- Datum *dict_id;
-} ListDictionary;
-
-typedef struct
-{
- Oid id;
- Oid prs_id;
- int len;
- ListDictionary *map;
-} TSCfgInfo;
-
-Oid name2id_cfg(text *name);
-TSCfgInfo *findcfg(Oid id);
-void init_cfg(Oid id, TSCfgInfo * cfg);
-void reset_cfg(void);
-
-typedef struct
-{
- uint16 len;
- uint16 nvariant;
- union
- {
- uint16 pos;
- uint16 *apos;
- } pos;
- char *word;
- uint32 alen;
-} TSWORD;
-
-typedef struct
-{
- TSWORD *words;
- int4 lenwords;
- int4 curwords;
- int4 pos;
-} PRSTEXT;
-
-typedef struct
-{
- uint32 selected:1,
- in:1,
- replace:1,
- repeated:1,
- unused:4,
- type:8,
- len:16;
- char *word;
- ITEM *item;
-} HLWORD;
-
-typedef struct
-{
- HLWORD *words;
- int4 lenwords;
- int4 curwords;
- char *startsel;
- char *stopsel;
- int2 startsellen;
- int2 stopsellen;
-} HLPRSTEXT;
-
-void hlparsetext(TSCfgInfo * cfg, HLPRSTEXT * prs, QUERYTYPE * query, char *buf, int4 buflen);
-text *genhl(HLPRSTEXT * prs);
-
-void parsetext_v2(TSCfgInfo * cfg, PRSTEXT * prs, char *buf, int4 buflen);
-int get_currcfg(void);
-
-#endif