Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UZIRn-0006sQ-Ii for pgsql-bugs@arkaria.postgresql.org; Mon, 06 May 2013 10:15:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UZIRm-00008C-Vz for pgsql-bugs@arkaria.postgresql.org; Mon, 06 May 2013 10:15:07 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UZIRm-000077-19 for pgsql-bugs@postgresql.org; Mon, 06 May 2013 10:15:06 +0000 Received: from mail-ea0-x22e.google.com ([2a00:1450:4013:c01::22e]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UZIRe-0003Mw-Cv for pgsql-bugs@postgresql.org; Mon, 06 May 2013 10:15:05 +0000 Received: by mail-ea0-f174.google.com with SMTP id f15so1610516eak.5 for ; Mon, 06 May 2013 03:14:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=0UninKFTGGlgoEhnsMYXaEAnyv8y6pYwA+AvTLCA60k=; b=boYDV0G5wUs0gTVpUVTP6GMixNZM4dYgqXEWL7S/yqVXzrNzlnnqBMYhOIZtiJrTYK H/8ftfNtrcrtBTd6lt6vZh3rD0u3kp+jAAEB6UzusHpnA9Qltuf9dJz0aeCTNRltkf9E HVl0dSKjGSiVRKQJwTdCNAuL5MOt9JoJs/Y7Lvz+l9xVkNowjX9KyhKm3qe3lb0PVp20 zeh1tePFp2cbNRS/ilvWN8VqJiSotmOg+10pl9b0GimKW3rC3e0y3aIUOs6qerOvkn2L 7cQMtwT/siclR4dnbnY+WWaDeWdjmh8CVMYUO0UBvREFv+H18GJiEPQfhLtu+BMvfeP/ RSlQ== X-Received: by 10.15.107.77 with SMTP id ca53mr56769382eeb.40.1367835296475; Mon, 06 May 2013 03:14:56 -0700 (PDT) Received: from ?IPv6:2a00:fac0:0:a000:61bc:118e:353a:eb66? ([2a00:fac0:0:a000:61bc:118e:353a:eb66]) by mx.google.com with ESMTPSA id bn53sm32374377eeb.7.2013.05.06.03.14.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 May 2013 03:14:55 -0700 (PDT) Message-ID: <51878292.6080003@fooby.de> Date: Mon, 06 May 2013 12:14:42 +0200 From: Patryk Kordylewski User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Inconsistency between TO_CHAR() and TO_NUMBER() Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlJ5xhmt2hhNgHPbuEFsnhU5bZBsNJ4rWOnOWDKjQnm86A+RZwpmyCkZEJPC5CHP84ZBHY5 X-Pg-Spam-Score: -1.2 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, i have the following test-case: http://psql.privatepaste.com/b3b431851a We want to convert a TO_CHAR() formated numeric back to numeric using TO_NUMBER() with the same format string. This does not work with a german locale. By removing the FM prefix and using the exact amount of digits in the format string for TO_NUMBER() it starts to work. Switching the locale back to en_US does work too. Is this a bug or am i missing something? Thanks! Best regards, Patryk -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs