diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-11-13 21:02:29 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-11-13 21:02:29 +0000 |
commit | 90e3f2aca716e562f81a64dba5fb5232b140e4d7 (patch) | |
tree | 2040468fc9a6e902614d48b03912da6859e95bf7 /contrib/tsearch2/common.h | |
parent | 4ea3210a04478163edf1ffd7d2547b62e82df4f0 (diff) | |
download | postgresql-90e3f2aca716e562f81a64dba5fb5232b140e4d7.tar.gz postgresql-90e3f2aca716e562f81a64dba5fb5232b140e4d7.zip |
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/common.h')
-rw-r--r-- | contrib/tsearch2/common.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/contrib/tsearch2/common.h b/contrib/tsearch2/common.h deleted file mode 100644 index ff6ebd6240f..00000000000 --- a/contrib/tsearch2/common.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef __TS_COMMON_H__ -#define __TS_COMMON_H__ - -#include "postgres.h" -#include "fmgr.h" -#include "utils/array.h" - -text *char2text(char *in); -text *charl2text(char *in, int len); -char *text2char(text *in); -char *pnstrdup(char *in, int len); -text *ptextdup(text *in); -text *mtextdup(text *in); - -int text_cmp(text *a, text *b); - -char *to_absfilename(char *filename); - -#define NEXTVAL(x) ( (text*)( (char*)(x) + INTALIGN( VARSIZE(x) ) ) ) -#define ARRNELEMS(x) ArrayGetNItems( ARR_NDIM(x), ARR_DIMS(x)) - -void ts_error(int state, const char *format,...); - -extern Oid TSNSP_FunctionOid; /* oid of called function, needed only for - * determ namespace, no more */ -char *get_namespace(Oid funcoid); -Oid get_oidnamespace(Oid funcoid); - -#define SET_FUNCOID() do { \ - if ( fcinfo->flinfo && fcinfo->flinfo->fn_oid != InvalidOid ) \ - TSNSP_FunctionOid = fcinfo->flinfo->fn_oid; \ -} while(0) - -#endif |