Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axxLH-0000Ke-LE for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 13:59:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axxLG-0006NO-JN for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 13:59:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axxJu-0002SH-5q for pgsql-hackers@postgresql.org; Wed, 04 May 2016 13:58:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1axxJr-0008Hr-Lk for pgsql-hackers@postgresql.org; Wed, 04 May 2016 13:58:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u44DwMh8004329; Wed, 4 May 2016 09:58:22 -0400 From: Tom Lane To: Stas Kelvich cc: David Fetter , pgsql-hackers@postgresql.org Subject: Re: Naming of new tsvector functions In-reply-to: References: <4875.1462210058@sss.pgh.pa.us> <6106.1462211891@sss.pgh.pa.us> <20160502215907.GA1882@fetter.org> Comments: In-reply-to Stas Kelvich message dated "Wed, 04 May 2016 16:43:55 +0300" Date: Wed, 04 May 2016 09:58:22 -0400 Message-ID: <4328.1462370302@sss.pgh.pa.us> X-Pg-Spam-Score: -4.0 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Stas Kelvich writes: >> On 03 May 2016, at 00:59, David Fetter wrote: >> 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? > 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? The other ones are not so problematic because they do not conflict with SQL keywords. It's only delete() and filter() that scare me. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers