Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axHi5-0002fH-Gv for pgsql-hackers@arkaria.postgresql.org; Mon, 02 May 2016 17:32:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axHi5-00086y-3F for pgsql-hackers@arkaria.postgresql.org; Mon, 02 May 2016 17:32:41 +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 1axHgk-0006b2-Ju for pgsql-hackers@postgreSQL.org; Mon, 02 May 2016 17:31:18 +0000 Received: from www.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618] helo=lists.commandprompt.com) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axHgf-0007h9-0D for pgsql-hackers@postgreSQL.org; Mon, 02 May 2016 17:31:17 +0000 Received: from [192.168.1.61] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 8E969542; Mon, 2 May 2016 10:31:10 -0700 (PDT) Received: from c-73-225-27-179.hsd1.wa.comcast.net ([73.225.27.179] helo=[192.168.1.61]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.4.5); 2 May 2016 10:31:10 -0700 Subject: Re: Naming of new tsvector functions To: Tom Lane , Teodor Sigaev References: <4875.1462210058@sss.pgh.pa.us> Cc: pgsql-hackers@postgreSQL.org From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: <57278EDD.3090205@commandprompt.com> Date: Mon, 2 May 2016 10:31:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <4875.1462210058@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Assp-Version: 2.4.5(15162) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-10270-05387 X-Assp-Session: 7EFE658F7DB0 (mail 1) X-Assp-Envelope-From: jd@commandprompt.com X-Assp-Intended-For: pgsql-hackers@postgreSQL.org X-Assp-Intended-For: teodor@sigaev.ru X-Assp-Intended-For: tgl@sss.pgh.pa.us X-Assp-Original-Subject: Re: [HACKERS] Naming of new tsvector functions X-Assp-Client-SSL: yes X-Pg-Spam-Score: -2.9 (--) 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 05/02/2016 10:27 AM, Tom Lane wrote: > I noticed that 6943a946c introduces some new functions named delete() > and filter(). This does not seem like a terribly bright idea to me. > They may not be formally ambiguous with the corresponding keywords, > but it's not very hard to imagine how small typos could lead to > the parser taking the unintended interpretation and then producing > totally confusing error messages. It's even less hard to imagine > this choice preventing us from introducing some new syntax in future > (for instance, DELETE ... RETURNING ... as a subquery-in-FROM) because > it *would* be formally ambiguous. > > I think we'd be better off to rename these to tsvector_delete() and > tsvector_filter() while we still can. or ts_filter/delete? but no objection JD > > regards, tom lane > > -- Command Prompt, Inc. http://the.postgres.company/ +1-503-667-4564 PostgreSQL Centered full stack support, consulting and development. Everyone appreciates your honesty, until you are honest with them. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers