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 1iuxOL-0007Sp-7m for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jan 2020 11:44:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iuxOJ-0002X0-W9 for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Jan 2020 11:44:48 +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 1iuxOJ-0002Ws-Jr for pgsql-hackers@lists.postgresql.org; Fri, 24 Jan 2020 11:44:47 +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 1iuxOH-00059a-FT for pgsql-hackers@lists.postgresql.org; Fri, 24 Jan 2020 11:44:46 +0000 Received: by mail-qt1-x841.google.com with SMTP id w47so1242476qtk.4 for ; Fri, 24 Jan 2020 03:44:45 -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=DikLa6485/XVP9iP+LKYsPOlOofuUGqUhQmh6lx5ysU=; b=iI9Hhb5orgnMmk3177Lok2oUWHqiJVpE7OzhSWdAoRflEGDgsDbrBYEgM2KhDBVIlR beSxiEDu474+6PtE+RsZo41hhNy/ectD/F8S7YZbpp+f2FJRNxqkhzdcfSPMxVIGL8fG Vuojh5l1vMlzZ4kcAtLQP+lhxWdox6QLvYO6BTVj4WHT69LelhqxhCnNUJqPhcpvsvGX y9VsgB14rXi/bC7vfZH5GwKwO3fEcKBVJt8a9HxwLzmYUE2aWXWeteJwaJrhNZADt9ns zwEDtp1vgQWwAaFyyKEkVFTXvddldRxL9UjXK4mYqO4L6GEhQK5SWnxAvhI8tByewrbj MriQ== 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=DikLa6485/XVP9iP+LKYsPOlOofuUGqUhQmh6lx5ysU=; b=dmlUxc+tTDSPxTQqIuriA1WFAVQxBOTUb6vev1fAPYJH+zVcH8jiHUcO0SnWfshva+ EQi721INue/BTC22PQprK4ya1cwsJlPe/P1SVy61srbwWATyIf6Q6AARGzDdIIdhZJUp lRVzbk0R3UnWE8tE97Krxli4usQCmzNO0YKNJM8v6e2eDuyoj1IifDdL9ODNdXNce26m X1gKCHhQy6touBrNm9HODR/hOwGQiN/Ubywsb5EynIKACbwzJ3WCo8rmFsOieGg++L4L Fiot3GZglK/tq6lmI/QmLvZASW+eFMYK32TC8AHj/9l8+LnP6phlU12XL1kW5IFZUTpI M1AQ== X-Gm-Message-State: APjAAAUQnyiFOvcPulAWf2s5lQOiMI2cY56Zdh568FRYUbtVWAsUGNwi 2yeiPwkvUHtgHRd3mOFWbhHG6Q== X-Google-Smtp-Source: APXvYqx7aW2p17nfIujYzwad+Xr8fH56IOX8TD75638XHokWsyldm4cQGpomsD8+/xWyb3tzmUoqbQ== X-Received: by 2002:ac8:5395:: with SMTP id x21mr1647115qtp.64.1579866284490; Fri, 24 Jan 2020 03:44:44 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([201.186.208.119]) by smtp.gmail.com with ESMTPSA id h7sm2906907qke.30.2020.01.24.03.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2020 03:44:43 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 6459D30080C; Fri, 24 Jan 2020 08:44:41 -0300 (-03) Date: Fri, 24 Jan 2020 08:44:41 -0300 From: Alvaro Herrera To: Juan =?iso-8859-1?Q?Jos=E9_Santamar=EDa?= Flecha Cc: Tom Lane , Arthur Zakirov , Tomas Vondra , PostgreSQL Hackers Subject: Re: Allow to_date() and to_timestamp() to accept localized names Message-ID: <20200124114441.GA5753@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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, Juan José Santamaría Flecha wrote: > There is an open patch that will make the normalization functionality user > visible [1]. So, if a user can call to_date(normalize('01 ŞUB 2010'), 'DD > TMMON YYYY') I would vote to drop the normalization logic inside this patch > altogether. I was reading the SQL standard on this point, and it says this (4.2.8 Universal character sets): An SQL-implementation may assume that all UCS strings are normalized in one of [Unicode normalization forms]. which seems to agree with what you're saying. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services