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 1moTkX-0003zn-MH for pgsql-general@arkaria.postgresql.org; Sat, 20 Nov 2021 17:02:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1moTkW-0006Ga-Kw for pgsql-general@arkaria.postgresql.org; Sat, 20 Nov 2021 17:02:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moTkW-0006GR-AX for pgsql-general@lists.postgresql.org; Sat, 20 Nov 2021 17:02:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1moTkU-0005Js-3E for pgsql-general@lists.postgresql.org; Sat, 20 Nov 2021 17:01:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1AKH1uVt3175390; Sat, 20 Nov 2021 12:01:56 -0500 From: Tom Lane To: =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= cc: pgsql-general Subject: Re: insert column monetary type ver 2 In-reply-to: References: Comments: In-reply-to =?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?= message dated "Sat, 20 Nov 2021 17:45:03 +0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3175388.1637427716.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 20 Nov 2021 12:01:56 -0500 Message-ID: <3175389.1637427716@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?UTF-8?B?0JTQvNC40YLRgNC40Lkg0JjQstCw0L3QvtCy?=3D writes: > I can't figure out the problem. Digit group group separator causes an > insertion error, what should I do? > lc_monetary =3D '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 =3D {decimal_point =3D 0x23ef120 ".", thousands_sep =3D 0x23ef140 "", = grouping =3D 0x23ef160 "", int_curr_symbol =3D 0x23ef1a0 "RUB ", = currency_symbol =3D 0x23ef1c0 "\342\202\275", = mon_decimal_point =3D 0x23ef1e0 ",", = mon_thousands_sep =3D 0x23ef200 "\342\200\257", = mon_grouping =3D 0x23ef220 "\003\003", positive_sign =3D 0x23ef240 "", = negative_sign =3D 0x23ef260 "-", int_frac_digits =3D 2 '\002', = frac_digits =3D 2 '\002', p_cs_precedes =3D 0 '\000', p_sep_by_space =3D= 1 '\001', = n_cs_precedes =3D 0 '\000', n_sep_by_space =3D 1 '\001', p_sign_posn =3D= 1 '\001', = n_sign_posn =3D 1 '\001', int_p_cs_precedes =3D 0 '\000', = int_p_sep_by_space =3D 0 '\000', int_n_cs_precedes =3D 0 '\000', = int_n_sep_by_space =3D 0 '\000', int_p_sign_posn =3D 0 '\000', = int_n_sign_posn =3D 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. regards, tom lane