Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ayPDs-0006S3-Ds for pgsql-hackers@arkaria.postgresql.org; Thu, 05 May 2016 19:46:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ayPDr-00070E-SA for pgsql-hackers@arkaria.postgresql.org; Thu, 05 May 2016 19:46:07 +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 1ayPCX-0005Os-Kg for pgsql-hackers@postgresql.org; Thu, 05 May 2016 19:44:45 +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 1ayPCU-0005ZI-Vo for pgsql-hackers@postgresql.org; Thu, 05 May 2016 19:44:44 +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 u45Jiadl010332; Thu, 5 May 2016 15:44:36 -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> <4328.1462370302@sss.pgh.pa.us> <2AF3687B-2B6B-415C-978E-0991EFE9718B@postgrespro.ru> <12735.1462382108@sss.pgh.pa.us> Comments: In-reply-to Stas Kelvich message dated "Thu, 05 May 2016 12:20:02 +0300" Date: Thu, 05 May 2016 15:44:36 -0400 Message-ID: <10331.1462477476@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 04 May 2016, at 20:15, Tom Lane wrote: >> Also, I'd supposed that we'd rename to tsvector_something, since >> the same patch also introduced tsvector_to_array() and >> array_to_tsvector(). What's the motivation for using ts_ as the >> prefix? > There is already several functions named ts_* (ts_rank, ts_headline, ts_rewrite) > and two named starting from tsvector_* (tsvector_update_trigger, tsvector_update_trigger_column). > Personally I’d prefer ts_ over tsvector_ since it is shorter, and still keeps semantics. Yeah, I see we're already a bit inconsistent here. The problem with using a ts_ prefix, to my mind, is that it offers no option for distinguishing tsvector from tsquery, should you need to do that. Maybe this isn't a problem for functions that have tsvector as input. 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