Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 50FC62E02E1 for ; Sat, 12 Jan 2008 17:51:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 67959-06 for ; Sat, 12 Jan 2008 17:51:47 -0400 (AST) Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 0FBC42E0035 for ; Sat, 12 Jan 2008 17:51:49 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id m0CLpoM07983; Sat, 12 Jan 2008 16:51:50 -0500 (EST) From: Bruce Momjian Message-Id: <200801122151.m0CLpoM07983@momjian.us> Subject: Re: Documentation bug in 8.3? In-Reply-To: <22467.1200174238@sss.pgh.pa.us> To: Tom Lane Date: Sat, 12 Jan 2008 16:51:50 -0500 (EST) CC: PostgreSQL-documentation X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1200174710-873-0_" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/15 X-Sequence-Number: 4744 --ELM1200174710-873-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Tom Lane wrote: > 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) OK, thanks. I will clarify the documentation. Patch attached and applied. -- Bruce Momjian http://momjian.us EnterpriseDB http://postgres.enterprisedb.com + If your life is a hard drive, Christ can be your backup. + --ELM1200174710-873-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/rtmp/diff" Index: doc/src/sgml/datatype.sgml =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v retrieving revision 1.222 diff -c -c -r1.222 datatype.sgml *** doc/src/sgml/datatype.sgml 2 Jan 2008 19:53:13 -0000 1.222 --- doc/src/sgml/datatype.sgml 12 Jan 2008 21:50:51 -0000 *************** *** 3330,3336 **** document. Positional information can be used for proximity ranking. Position values can range from 1 to 16383; larger numbers are silently clamped to 16383. ! Duplicate position entries are discarded. --- 3330,3336 ---- document. Positional information can be used for proximity ranking. Position values can range from 1 to 16383; larger numbers are silently clamped to 16383. ! Duplicate positions for the same lexeme are discarded. --ELM1200174710-873-0_--