1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-09 17:03:00 +03:00
typedef struct {} WordEntryPos;
to
typedef uint16 WordEntryPos
according to http://www.pgsql.ru/db/mw/msg.html?mid=2035188

Require re-fill all tsvector fields and reindex tsvector indexes.
This commit is contained in:
Teodor Sigaev
2005-01-25 12:36:25 +00:00
parent 4405e74355
commit fe30edbab8
6 changed files with 57 additions and 44 deletions

View File

@@ -42,7 +42,7 @@ check_weight(tsvector * txt, WordEntry * wptr, int8 weight)
while (len--)
{
if (weight & (1 << ptr->weight))
if (weight & (1 << WEP_GETWEIGHT(*ptr)))
num++;
ptr++;
}