pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Victor Drobny <v.drobny@postgrespro.ru>
To: pgsql-hackers@postgresql.org
Subject: A mistake in a comment
Date: Mon, 26 Jun 2017 11:02:36 +0300
Message-ID: <2b5382fdff9b1f79d5eb2c99c4d2cbe2@postgrespro.ru> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Hello,

I believe that I have found a mistake in a comment to 
parse_phrase_operator function. The comment has the following line:
a <X> b (distance is no greater than X)
which is not. According to documentation and practical results, this 
line should me changed on something like:
a <X> b (distance is equal to X)

Patch in the attachments fixes the issue.

Thank you for attention!

Best,
Victor

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachments:

  [text/x-diff] comment_patch.diff (502B, ../2b5382fdff9b1f79d5eb2c99c4d2cbe2@postgrespro.ru/2-comment_patch.diff)
  download | inline diff:
diff --git a/src/backend/utils/adt/tsquery.c b/src/backend/utils/adt/tsquery.c
index ee047bd..260d780 100644
--- a/src/backend/utils/adt/tsquery.c
+++ b/src/backend/utils/adt/tsquery.c
@@ -113,7 +113,7 @@ get_modifiers(char *buf, int16 *weight, bool *prefix)
  * Parse phrase operator. The operator
  * may take the following forms:
  *
- *		a <X> b (distance is no greater than X)
+ *		a <X> b (distance is equal to X)
  *		a <-> b (default distance = 1)
  *
  * The buffer should begin with '<' char


view thread (2+ messages)  latest in thread

Message-ID: <2b5382fdff9b1f79d5eb2c99c4d2cbe2@postgrespro.ru>
Permalink:  ../2b5382fdff9b1f79d5eb2c99c4d2cbe2@postgrespro.ru/
Also on:    postgresql.org/message-id/2b5382fdff9b1f79d5eb2c99c4d2cbe2@postgrespro.ru

 ·  · 

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-hackers@postgresql.org
  Cc: v.drobny@postgrespro.ru
  Subject: Re: A mistake in a comment
  In-Reply-To: <2b5382fdff9b1f79d5eb2c99c4d2cbe2@postgrespro.ru>

* 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