Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axx60-0006JA-ML for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 13:44:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axx60-0004dt-8I for pgsql-hackers@arkaria.postgresql.org; Wed, 04 May 2016 13:44:08 +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 1axx5y-0004cx-R7 for pgsql-hackers@postgresql.org; Wed, 04 May 2016 13:44:07 +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 1axx5r-0004Oh-Cm for pgsql-hackers@postgresql.org; Wed, 04 May 2016 13:44:06 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id D1ECF21C82CA; Wed, 4 May 2016 16:43:58 +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 r2YXlkI0hi08; Wed, 4 May 2016 16:43:55 +0300 (MSK) Received: from [192.168.27.50] (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id C05ED21C8294; Wed, 4 May 2016 16:43:55 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1462369435; bh=97F69hm+SvMDuBeLyLSMo7D34wnk9f6q+zxz9g3srr4=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=m6AorPkN23PGdj44HYAR6yOMxs087qrn/n+HjoL7wrxZypMdTM1Th4jyQZvSGNGDM ZQxeiu+sqOm2w6zA86o8dgGR6eNugZLFPQ7iC3zihYKLiqvO37N4Id39v5uz+f881v L39hw3hAt0c3KGoZawn0meAnyvarsR5VKHI4W0t4= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Naming of new tsvector functions From: Stas Kelvich In-Reply-To: <20160502215907.GA1882@fetter.org> Date: Wed, 4 May 2016 16:43:55 +0300 Cc: 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> To: David Fetter 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 03 May 2016, at 00:59, David Fetter wrote: >=20 > 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. >>=20 >> ... 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. >=20 > 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? >=20 > Cheers, > David. In 9.5 there already were tsvector functions length(), numnode(), strip() Recent commit added setweight(), delete(), unnest(), tsvector_to_array(), a= rray_to_tsvector(), filter(). Last bunch can be painlessly renamed, for example to ts_setweight, ts_delet= e, 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? --=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