Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iv1f4-0004AD-OG for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jan 2020 16:18:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iv1f3-00070R-Fb for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jan 2020 16:18:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iv1f2-00070K-Up for pgsql-hackers@lists.postgresql.org; Fri, 24 Jan 2020 16:18:21 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iv1ez-0007Hc-To for pgsql-hackers@lists.postgresql.org; Fri, 24 Jan 2020 16:18:19 +0000 Received: by mail-qt1-x841.google.com with SMTP id h12so1932127qtu.1 for ; Fri, 24 Jan 2020 08:18:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=3RB6Br0g6Rkn3FRr9HrhPHZdsgXqBtNmzyqxpa51qi4=; b=vCbsiUvMQMUD7fG3h9HvwKAeSOukf7kizQUGvAHMsDfeoyPVSa5jkia2MofdeaHjyL v0SiULHFCdA1NwS48iLvdS+Fhu2xuRXVNABVCEw7AEnyfdBTfZ8I8/YN0+m6iPSFetnK T5jZOsO5PsMOrCNCSREAiBePcHq6iMRMOrJdSmZEJZ2ONtukBE8pNfGsvj0jQ3n2qN5z srTHSmcdw0HNa90u5Ztw02tszMF9fcQGhLdAq9wF5CwoTz5dK6i2prrdf2yYCAo8PO6Y R52uCtkMfFx422c7QTiKxLaH8+WRArb6NCfD/CiHfEU9mDvUmcUBh0ulvIBpohcTZi8/ ArOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=3RB6Br0g6Rkn3FRr9HrhPHZdsgXqBtNmzyqxpa51qi4=; b=URKJvxzfonOlnUkrE/hElFczA0SC/7ak4/M8zhecJuTF+Vd2c+KnOoBrGaX+Yds43q AIbX+qbWFH3P3rSdob7CIAiKJ9wM1JgivNu3nWERrYj95oEMVrjLvTkMG4f43xg59wLT ncoMSxLC+uNG4ELWgvmfQVRvqIdmT1PwbfHpOV8jpf+JkGAtek+jjUPQS2vAyhm/fwms ElTbIdanSKY4fUirvm7jd68O6d1tBlF50vNVDMkp4OwrY2/o+h3mVssxAHLJqaLyuqPT Cz+D58XOAqZYTwiVn/8bVGAZEPEzm2VFVGE5OBSyjRZMxAqFLYSWpCf9iPmF4A2WVFmr EdmA== X-Gm-Message-State: APjAAAX09qNt26nfvO/r0vnI+4HdQtN1HBwHVopN2J9KpekqlHjWJHKW w/7KAvhdQZG4zVw6Fsp+wURtNA== X-Google-Smtp-Source: APXvYqy8mAGS7BaimNJ2xVGREKhHjC7q+UBPnk6s60EtWbRrLZfA1vtvSzSIapxRMiiltsWxJHjW9w== X-Received: by 2002:ac8:6999:: with SMTP id o25mr2927334qtq.342.1579882696943; Fri, 24 Jan 2020 08:18:16 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.217.183.156]) by smtp.gmail.com with ESMTPSA id r66sm3325274qkd.125.2020.01.24.08.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2020 08:18:16 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 30FE430080C; Fri, 24 Jan 2020 13:18:14 -0300 (-03) Date: Fri, 24 Jan 2020 13:18:14 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: Juan =?iso-8859-1?Q?Jos=E9_Santamar=EDa?= Flecha , Tom Lane , Arthur Zakirov , Tomas Vondra , PostgreSQL Hackers Subject: Re: Allow to_date() and to_timestamp() to accept localized names Message-ID: <20200124161814.GA8989@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jan-24, Peter Eisentraut wrote: > When you interact with glibc locale functions, you essentially have to > assume that everything is in NFC. When using ICU locale functions (which we > don't here, but just for the sake of argument), then I would expect that ICU > does appropriate normalization itself when I call > icu_what_month_is_this(string) returns int. So I think it is appropriate to > not deal with normalization in this patch. But that's a different POV. The input to this function could come from arbitrary user input from any application whatsoever. So the only reason we can get away with that is because the example regression case Juan José added (which uses non-normals) does not conform to the standard. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services