Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ay0Pi-0002rT-Qg for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 17:16:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ay0Pi-0007Lw-83 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 17:16:42 +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 1ay0ON-0005rC-11 for pgsql-hackers@postgresql.org; Wed, 04 May 2016 17:15:19 +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 1ay0OH-0004Et-LP for pgsql-hackers@postgresql.org; Wed, 04 May 2016 17:15:17 +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 u44HF8nH012736; Wed, 4 May 2016 13:15:08 -0400 From: Tom Lane To: Stas Kelvich cc: David Fetter , pgsql-hackers@postgresql.org Subject: Re: Naming of new tsvector functions In-reply-to: <2AF3687B-2B6B-415C-978E-0991EFE9718B@postgrespro.ru> 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> Comments: In-reply-to Stas Kelvich message dated "Wed, 04 May 2016 19:25:52 +0300" Date: Wed, 04 May 2016 13:15:08 -0400 Message-ID: <12735.1462382108@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 16:58, Tom Lane wrote: >> The other ones are not so problematic because they do not conflict with >> SQL keywords. It's only delete() and filter() that scare me. > Okay, so changed functions to ts_setweight, ts_delete, ts_unnest, ts_filter. Somehow, I don't think you read what I wrote. Renaming the pre-existing setweight() function to ts_setweight() is not going to happen; it's been like that for half a dozen years now. It would make no sense to call the new variant ts_setweight() while keeping setweight() for the existing function, either. I also don't see that much point in ts_unnest(), since unnest() in our implementation is a function not a keyword. I don't have a strong opinion about that one, though. 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? 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