pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL-documentation <pgsql-docs@postgresql.org>
Subject: Re: Documentation bug in 8.3?
Date: Sat, 12 Jan 2008 16:51:50 -0500 (EST)
Message-ID: <200801122151.m0CLpoM07983@momjian.us> (raw)
In-Reply-To: <22467.1200174238@sss.pgh.pa.us>

Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> 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  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

Attachments:

/rtmp/diff (text/x-diff, 966B) download 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 <firstterm>proximity ranking</firstterm>. Position values can range from 1 to 16383; larger numbers are silently clamped to 16383. ! Duplicate position entries are discarded. </para> <para> --- 3330,3336 ---- document. Positional information can be used for <firstterm>proximity ranking</firstterm>. Position values can range from 1 to 16383; larger numbers are silently clamped to 16383. ! Duplicate positions for the same lexeme are discarded. </para> <para>

view thread (3+ messages)

Message-ID: <200801122151.m0CLpoM07983@momjian.us>
Permalink:  ../200801122151.m0CLpoM07983@momjian.us/
Also on:    postgresql.org/message-id/200801122151.m0CLpoM07983@momjian.us

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: bruce@momjian.us, tgl@sss.pgh.pa.us
  Subject: Re: Documentation bug in 8.3?
  In-Reply-To: <200801122151.m0CLpoM07983@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox