pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stas Kelvich <s.kelvich@postgrespro.ru>
To: David Fetter <david@fetter.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Naming of new tsvector functions
Date: Wed, 4 May 2016 16:43:55 +0300
Message-ID: <D91383B7-1CCA-4FE1-8570-C6275C202CC0@postgrespro.ru> (raw)
In-Reply-To: <20160502215907.GA1882@fetter.org>
References: <4875.1462210058@sss.pgh.pa.us>
	<6106.1462211891@sss.pgh.pa.us>
	<20160502215907.GA1882@fetter.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

> On 03 May 2016, at 00:59, David Fetter <david@fetter.org> wrote:
> 
> On Mon, May 02, 2016 at 01:58:11PM -0400, Tom Lane wrote:
>> I wrote:
>>> I think we'd be better off to rename these to tsvector_delete()
>>> and tsvector_filter() while we still can.
>> 
>> ... although I now notice that hstore already exposes a function
>> named delete(), so that ship may have sailed already.  But I'm more
>> troubled by filter() anyhow, since that keyword can appear in
>> expressions --- it seems much more likely that that would pose a
>> parsing conflict after future SQL extensions.
> 
> I suspect that steering that ship would be a good idea starting with
> deprecation of the old name in 9.6, etc.  hs_filter(), perhaps?
> 
> Cheers,
> David.


In 9.5 there already were tsvector functions length(), numnode(), strip()

Recent commit added setweight(), delete(), unnest(), tsvector_to_array(), array_to_tsvector(), filter().

Last bunch can be painlessly renamed, for example to ts_setweight, ts_delete, ts_unnest, ts_filter.

The question is what to do with old ones? Leave them as is? Rename to ts_* and create aliases with deprecation warning?

-- 
Stas Kelvich
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company



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



view thread (15+ messages)  latest in thread

Message-ID: <D91383B7-1CCA-4FE1-8570-C6275C202CC0@postgrespro.ru>
Permalink:  ../D91383B7-1CCA-4FE1-8570-C6275C202CC0@postgrespro.ru/
Also on:    postgresql.org/message-id/D91383B7-1CCA-4FE1-8570-C6275C202CC0@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: s.kelvich@postgrespro.ru, david@fetter.org
  Subject: Re: Naming of new tsvector functions
  In-Reply-To: <D91383B7-1CCA-4FE1-8570-C6275C202CC0@postgrespro.ru>
  References: <4875.1462210058@sss.pgh.pa.us> <6106.1462211891@sss.pgh.pa.us> <20160502215907.GA1882@fetter.org> <D91383B7-1CCA-4FE1-8570-C6275C202CC0@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