Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ayFTe-0002nF-4u for pgsql-hackers@arkaria.postgresql.org; Thu, 05 May 2016 09:21:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ayFTd-0007TT-14 for pgsql-hackers@arkaria.postgresql.org; Thu, 05 May 2016 09:21:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ayFSB-0005kT-Pm for pgsql-hackers@postgresql.org; Thu, 05 May 2016 09:20:15 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ayFS3-0000By-QB for pgsql-hackers@postgresql.org; Thu, 05 May 2016 09:20:15 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id C333B21C8338; Thu, 5 May 2016 12:20:04 +0300 (MSK) Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QNiiIXfSNm0q; Thu, 5 May 2016 12:20:03 +0300 (MSK) Received: from [192.168.27.50] (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id E78B321C82FF; Thu, 5 May 2016 12:20:02 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1462440002; bh=3JnGOdN2U6WnMKPcgA1bOWdS0XvfHHOAbMyCfNQhmk4=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=jZ4f44rckiOL2cPZJnXoyyKcCN/OimSR5e6SVmasLd+TjLh9c/7a97z3/INl5Uzmc Dvf09U15CzmtVDs/vNo+YfMlA7BeE0szkYzPL5Slj/Zuz+Ff7O32LqWobzfcm/0Kmo eaNRt6MLI+FuOdjOk8tdfOQDjm5MRoqIcXV0r6EE= Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Naming of new tsvector functions From: Stas Kelvich In-Reply-To: <12735.1462382108@sss.pgh.pa.us> Date: Thu, 5 May 2016 12:20:02 +0300 Cc: David Fetter , pgsql-hackers@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Tom Lane X-Mailer: Apple Mail (2.3124) X-Pg-Spam-Score: -4.1 (----) 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 > On 04 May 2016, at 20:15, Tom Lane wrote: >=20 > 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. >=20 >> Okay, so changed functions to ts_setweight, ts_delete, ts_unnest, ts_fil= ter. >=20 > Somehow, I don't think you read what I wrote. >=20 > 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. Oh, I accidentally renamed one of the old functions, my mistake. > 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. Just to keep some level of uniformity in function names. But also i=E2=80= =99m not insisting. > 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_rew= rite)=20 and two named starting from tsvector_* (tsvector_update_trigger, tsvector_u= pdate_trigger_column). Personally I=E2=80=99d prefer ts_ over tsvector_ since it is shorter, and s= till keeps semantics. >=20 > regards, tom lane --=20 Stas Kelvich Postgres Professional: http://www.postgrespro.com Russian Postgres Company --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers