pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add word_similarity to pg_trgm contrib module.
5+ messages / 3 participants
[nested] [flat]

* pgsql: Add word_similarity to pg_trgm contrib module.
@ 2016-03-16 16:09  Teodor Sigaev <teodor@sigaev.ru>
  0 siblings, 1 reply; 5+ messages in thread

From: Teodor Sigaev @ 2016-03-16 16:09 UTC (permalink / raw)
  To: pgsql-committers

Add word_similarity to pg_trgm contrib module.

Patch introduces a concept of similarity over string and just a word from
another string.

Version of extension is not changed because 1.2 was already introduced in 9.6
release cycle, so, there wasn't a public version.

Author: Alexander Korotkov, Artur Zakirov

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f576b17cd6ba653bdace1f0da9a3b57f4984e460

Modified Files
--------------
contrib/pg_trgm/Makefile              |   2 +-
contrib/pg_trgm/expected/pg_trgm.out  |   4 +-
contrib/pg_trgm/pg_trgm--1.1--1.2.sql |  64 ++++-
contrib/pg_trgm/pg_trgm--1.2.sql      |  64 +++++
contrib/pg_trgm/sql/pg_trgm.sql       |   4 +-
contrib/pg_trgm/trgm.h                |  30 +-
contrib/pg_trgm/trgm_gin.c            |  20 +-
contrib/pg_trgm/trgm_gist.c           |  33 ++-
contrib/pg_trgm/trgm_op.c             | 501 ++++++++++++++++++++++++++++++----
doc/src/sgml/pgtrgm.sgml              |  79 ++++++
10 files changed, 726 insertions(+), 75 deletions(-)


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


^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Add word_similarity to pg_trgm contrib module.
@ 2016-03-16 16:40  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Teodor Sigaev <teodor@sigaev.ru>
  0 siblings, 2 replies; 5+ messages in thread

From: Tom Lane @ 2016-03-16 16:40 UTC (permalink / raw)
  To: Teodor Sigaev <teodor@sigaev.ru>; +Cc: pgsql-committers

Teodor Sigaev <teodor@sigaev.ru> writes:
> Modified Files
> --------------
> contrib/pg_trgm/pg_trgm--1.1--1.2.sql |  64 ++++-
> contrib/pg_trgm/pg_trgm--1.2.sql      |  64 +++++

This is completely, utterly wrong.  You do not add stuff to an extension
module by redefining what version 1.2 means.  You do it by creating a 1.3
version and providing a 1.2--1.3 update script.

			regards, tom lane


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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Add word_similarity to pg_trgm contrib module.
@ 2016-03-16 16:54  Robert Haas <robertmhaas@gmail.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 5+ messages in thread

From: Robert Haas @ 2016-03-16 16:54 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers

On Wed, Mar 16, 2016 at 12:40 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Teodor Sigaev <teodor@sigaev.ru> writes:
>> Modified Files
>> --------------
>> contrib/pg_trgm/pg_trgm--1.1--1.2.sql |  64 ++++-
>> contrib/pg_trgm/pg_trgm--1.2.sql      |  64 +++++
>
> This is completely, utterly wrong.  You do not add stuff to an extension
> module by redefining what version 1.2 means.  You do it by creating a 1.3
> version and providing a 1.2--1.3 update script.

Uh, did you read his commit message?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Add word_similarity to pg_trgm contrib module.
@ 2016-03-16 16:58  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Robert Haas <robertmhaas@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2016-03-16 16:58 UTC (permalink / raw)
  To: Robert Haas <robertmhaas@gmail.com>; +Cc: Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers

Robert Haas <robertmhaas@gmail.com> writes:
> On Wed, Mar 16, 2016 at 12:40 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> This is completely, utterly wrong.  You do not add stuff to an extension
>> module by redefining what version 1.2 means.  You do it by creating a 1.3
>> version and providing a 1.2--1.3 update script.

> Uh, did you read his commit message?

Ah, sorry, I failed to absorb the point.  My apologies.

			regards, tom lane


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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: pgsql: Add word_similarity to pg_trgm contrib module.
@ 2016-03-16 16:59  Teodor Sigaev <teodor@sigaev.ru>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 5+ messages in thread

From: Teodor Sigaev @ 2016-03-16 16:59 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers

>> contrib/pg_trgm/pg_trgm--1.1--1.2.sql |  64 ++++-
>> contrib/pg_trgm/pg_trgm--1.2.sql      |  64 +++++
>
> This is completely, utterly wrong.  You do not add stuff to an extension
> module by redefining what version 1.2 means.  You do it by creating a 1.3
> version and providing a 1.2--1.3 update script.

http://www.postgresql.org/message-id/25977.1452717421@sss.pgh.pa.us

You had an opposite opinion three months ago. And I still agree with that.

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/


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



^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2016-03-16 16:59 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-03-16 16:09 pgsql: Add word_similarity to pg_trgm contrib module. Teodor Sigaev <teodor@sigaev.ru>
2016-03-16 16:40 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-03-16 16:54   ` Robert Haas <robertmhaas@gmail.com>
2016-03-16 16:58     ` Tom Lane <tgl@sss.pgh.pa.us>
2016-03-16 16:59   ` Teodor Sigaev <teodor@sigaev.ru>

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