tsrankbugfix.patch

text/x-patch

Filename: tsrankbugfix.patch
Type: text/x-patch
Part: 0
Message: bug in ts_rank_cd

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: unified
File+
src/backend/utils/adt/tsrank.c 1 1
--- postgresql-9.0.0/src/backend/utils/adt/tsrank.c	2010-01-02 22:27:55.000000000 +0530
+++ postgres-9.0.0-tsrankbugfix/src/backend/utils/adt/tsrank.c	2010-12-21 18:39:57.000000000 +0530
@@ -551,7 +551,7 @@
 	memset(qr->operandexist, 0, sizeof(bool) * qr->query->size);
 
 	ext->p = 0x7fffffff;
-	ext->q = 0;
+	ext->q = -1;
 	ptr = doc + ext->pos;
 
 	/* find upper bound of cover from current position, move up */