diff options
author | Teodor Sigaev | 2004-05-31 16:51:56 +0000 |
---|---|---|
committer | Teodor Sigaev | 2004-05-31 16:51:56 +0000 |
commit | 553bc4163388d660a30d5cb0cacad0e86fb7e449 (patch) | |
tree | 087f5c3a3cb79e7256072b2ff996b1c0a2e8a1dc /contrib/tsearch2/common.h | |
parent | 7cb55d21ed8d9f6071eb7835b861d5231cd45e14 (diff) |
1 add namespaces as Tom suggest http://www.pgsql.ru/db/mw/msg.html?mid=1987703
2 remove select qeury in inserts
Diffstat (limited to 'contrib/tsearch2/common.h')
-rw-r--r-- | contrib/tsearch2/common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/tsearch2/common.h b/contrib/tsearch2/common.h index 481f00405bb..6720598f817 100644 --- a/contrib/tsearch2/common.h +++ b/contrib/tsearch2/common.h @@ -21,4 +21,13 @@ int text_cmp(text *a, text *b); 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 |