Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moe3u-000263-3F for pgsql-general@arkaria.postgresql.org; Sun, 21 Nov 2021 04:02:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1moe3s-0002AD-BG for pgsql-general@arkaria.postgresql.org; Sun, 21 Nov 2021 04:02:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moe3r-0002A1-V4 for pgsql-general@lists.postgresql.org; Sun, 21 Nov 2021 04:02:40 +0000 Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1moe3l-0001Qk-DA for pgsql-general@lists.postgresql.org; Sun, 21 Nov 2021 04:02:39 +0000 Received: by mail-oi1-x235.google.com with SMTP id s139so30263220oie.13 for ; Sat, 20 Nov 2021 20:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=lL8Gow6nzLl6jOBbCJbX1qk5j87qyglhTOxFbhB3iPg=; b=qjcqP3hCd2Xs8wjivWpD+BSr+y4Q4iI7OYVvMKR/PiLR7/sVUOKpnSt1ZZBbxPQcsS qP7DwTGKXjy1VxPd+yPE8y2FaPCxxt5hGkOtHkBPmwdssVJYlUKW3ZlwTDlZz38TsF9c 25XJUdLybd5SMeQZ2zrGhIFEWnZkTHz0Zkce+a8lBRiTP43BXD357+4uqjEZRYgAs2qp NGNWIYpVDWUW/XWEEE4wbxG8WroT27ZlhnlnEYvA7Vb3dZLqsb9ch26zDU6gFGgXT9UC tXTpKhU4AEJPinNMX6E/ag/LrS2oX+OBU+5TP9+SOrJSgsQYl8cpstn8rTBxKhQi42K8 VpAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=lL8Gow6nzLl6jOBbCJbX1qk5j87qyglhTOxFbhB3iPg=; b=eRxg0Hl0g7UjJ1RIwGxgx3g+x9tHqLdA8/jTkthobb2WL4l19YYXnjz48ykE1EkwCR ekCUhFgZfkKpVswQNlBEMhRyTxsAgoDPY1HM5jPTyKr0EJpJuHg5DyJFkR6rYKINXHAI 0iWGs3mW/64ssNRQX81uInabS4rz9PkYVRF10T1v9TRKSCi9MjFJgjqtNMxodc1APAcJ DibxgY2fe4PkUPn03CRYWCWhrrxT2D5Xe3JUsq1kPobazdi7R4G5YYuLgeJLNDrTAPIM pLgP8WgC6ofn4Bo0t+rW8rjiISV+CvAPOSeGujPQTPZOAgEsbLJnAKk+p6Ram7SFIqUp wppw== X-Gm-Message-State: AOAM530MGlV6MLmOF7Vx25ZrZnmSQYDT4buEpND6dKSz5ydr5We9prOB Z1S4ZeLgt1DXcCatx7MLsby4HHnQdoU= X-Google-Smtp-Source: ABdhPJzOH/LFAhGJyp1RwEF0/pUEOq/796m3N9PDBNcDkxRoQwsXxWUMtkgKliGDjX16MEBlPz87DQ== X-Received: by 2002:aca:afc6:: with SMTP id y189mr11605994oie.46.1637467350722; Sat, 20 Nov 2021 20:02:30 -0800 (PST) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id 69sm914220otf.33.2021.11.20.20.02.29 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Nov 2021 20:02:30 -0800 (PST) Subject: Re: insert column monetary type ver 2 To: pgsql-general@lists.postgresql.org References: <3175389.1637427716@sss.pgh.pa.us> From: Ron Message-ID: <6ab247a8-1524-6e55-c7fd-1d296b1584c3@gmail.com> Date: Sat, 20 Nov 2021 22:02:29 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <3175389.1637427716@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/20/21 11:01 AM, Tom Lane wrote: > =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= writes: >> I can't figure out the problem. Digit group group separator causes an >> insertion error, what should I do? >> lc_monetary = 'ru_RU.UTF-8' > On my RHEL8 (moderately recent glibc) platform, that locale's > mon_thousands_sep symbol is not a plain space but "\342\200\257": > > p *lconvert > $3 = {decimal_point = 0x23ef120 ".", thousands_sep = 0x23ef140 "", > grouping = 0x23ef160 "", int_curr_symbol = 0x23ef1a0 "RUB ", > currency_symbol = 0x23ef1c0 "\342\202\275", > mon_decimal_point = 0x23ef1e0 ",", > mon_thousands_sep = 0x23ef200 "\342\200\257", > mon_grouping = 0x23ef220 "\003\003", positive_sign = 0x23ef240 "", > negative_sign = 0x23ef260 "-", int_frac_digits = 2 '\002', > frac_digits = 2 '\002', p_cs_precedes = 0 '\000', p_sep_by_space = 1 '\001', > n_cs_precedes = 0 '\000', n_sep_by_space = 1 '\001', p_sign_posn = 1 '\001', > n_sign_posn = 1 '\001', int_p_cs_precedes = 0 '\000', > int_p_sep_by_space = 0 '\000', int_n_cs_precedes = 0 '\000', > int_n_sep_by_space = 0 '\000', int_p_sign_posn = 0 '\000', > int_n_sign_posn = 0 '\000'} > > A quick lookup later, that's U+202F or "narrow no-break space". > > cash_in is picky about this, and won't take plain ASCII space as > a substitute. Not sure if it should. It probably should, based on the Robustness Principle: "be conservative in what you send, be liberal in what you accept". -- Angular momentum makes the world go 'round.