Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2B2F72E021E for ; Sat, 12 Jan 2008 17:44:05 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 03975-06 for ; Sat, 12 Jan 2008 17:44:00 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id DA23B2E0035 for ; Sat, 12 Jan 2008 17:43:59 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id m0CLhwQF022468; Sat, 12 Jan 2008 16:43:58 -0500 (EST) To: Bruce Momjian cc: PostgreSQL-documentation Subject: Re: Documentation bug in 8.3? In-reply-to: <200801122132.m0CLWNF28879@momjian.us> References: <200801122132.m0CLWNF28879@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Sat, 12 Jan 2008 16:32:23 -0500" Date: Sat, 12 Jan 2008 16:43:58 -0500 Message-ID: <22467.1200174238@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/14 X-Sequence-Number: 4743 Bruce Momjian writes: > clamped to 16383. Duplicate position entries are discarded. > ---------------------------------------- > However in my testing of 8.3 duplicate position entries are not > discarded: > test=> SELECT 'a:1 b:1'::tsvector; > tsvector > ------------- > 'a':1 'b':1 > (1 row) Those aren't duplicates, because they're not attached to the same lexeme. The comment is talking about this behavior: regression=# SELECT 'a:1 a:1'::tsvector; tsvector ---------- 'a':1 (1 row) regression=# SELECT 'a:1,2,1'::tsvector; tsvector ---------- 'a':1,2 (1 row) regards, tom lane