Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1axHec-0002Nx-4e for pgsql-hackers@arkaria.postgresql.org; Mon, 02 May 2016 17:29:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1axHeb-0006Ip-N7 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 May 2016 17:29:05 +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 1axHdG-0004f9-Mz for pgsql-hackers@postgreSQL.org; Mon, 02 May 2016 17:27:42 +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 1axHdE-0002yr-CR for pgsql-hackers@postgreSQL.org; Mon, 02 May 2016 17:27:41 +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 u42HRdRF004876; Mon, 2 May 2016 13:27:39 -0400 From: Tom Lane To: Teodor Sigaev cc: pgsql-hackers@postgreSQL.org Subject: Naming of new tsvector functions Date: Mon, 02 May 2016 13:27:38 -0400 Message-ID: <4875.1462210058@sss.pgh.pa.us> 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 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. 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