pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Teodor Sigaev <teodor@sigaev.ru>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix support of digits in email/hostnames.
Date: Thu, 28 Apr 2016 19:41:54 -0400
Message-ID: <20160428234154.GC11728@momjian.us> (raw)
In-Reply-To: <E1akva4-0003Zo-LI@gemulon.postgresql.org>
References: <E1akva4-0003Zo-LI@gemulon.postgresql.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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  <bruce@momjian.us>        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



view thread (5+ messages)  latest in thread

Message-ID: <20160428234154.GC11728@momjian.us>
Permalink:  ../20160428234154.GC11728@momjian.us/
Also on:    postgresql.org/message-id/20160428234154.GC11728@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: bruce@momjian.us, teodor@sigaev.ru
  Subject: Re: pgsql: Fix support of digits in email/hostnames.
  In-Reply-To: <20160428234154.GC11728@momjian.us>
  References: <E1akva4-0003Zo-LI@gemulon.postgresql.org> <20160428234154.GC11728@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox