Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avvZH-0007Bg-6Q for pgsql-committers@arkaria.postgresql.org; Thu, 28 Apr 2016 23:41:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1avvZG-00079V-Pe for pgsql-committers@arkaria.postgresql.org; Thu, 28 Apr 2016 23:41:58 +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 1avvZG-00079H-8O for pgsql-committers@postgresql.org; Thu, 28 Apr 2016 23:41:58 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1avvZD-0002f4-Dp for pgsql-committers@postgresql.org; Thu, 28 Apr 2016 23:41:57 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1avvZC-0006Wv-7U; Thu, 28 Apr 2016 19:41:54 -0400 Date: Thu, 28 Apr 2016 19:41:54 -0400 From: Bruce Momjian To: Teodor Sigaev Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Fix support of digits in email/hostnames. Message-ID: <20160428234154.GC11728@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On Tue, Mar 29, 2016 at 03:29:20PM +0000, Teodor Sigaev wrote: > Fix support of digits in email/hostnames. > > When tsearch was implemented I did several mistakes in hostname/email > definition rules: > 1) allow underscore in hostname what prohibited by RFC > 2) forget to allow leading digits separated by hyphen (like 123-x.com) > in hostname > 3) do no allow underscore/hyphen after leading digits in localpart of email > > Artur's patch resolves two last issues, but by the way allows hosts name like > 123_x.com together with 123-x.com. RFC forbids underscore usage in hostname > but pg allows that since initial tsearch version in core, although only > for non-digits. Patch syncs support digits and nondigits in both hostname and > email. > > Forbidding underscore in hostname may break existsing usage of tsearch and, > anyhow, it should be done by separate patch. > > Author: Artur Zakirov > BUG: #13964 Doesn't this invalidate tsvector indexes upgraded by pg_upgrade? Should they be marked as invalid? Can you also fix the other two TODO items related to this? Improve handling of dash and plus signs in email address user names, and perhaps improve URL parsing http://www.postgresql.org/message-id/201010122203.o9CM3RW09263@momjian.us http://www.postgresql.org/message-id/E1Ri8il-0008Ct-9p@wrigleys.postgresql.org -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers