Re: EDB Installer initcluster script changes - review requested

From: Sandeep Thakkar <sandeep(dot)thakkar(at)enterprisedb(dot)com>
To: Manika Singhal <manika(dot)singhal(at)enterprisedb(dot)com>
Cc: Vladlen Popolitov <v(dot)popolitov(at)postgrespro(dot)ru>, pgsql-hackers(at)lists(dot)postgresql(dot)org, thomas(dot)munro(at)gmail(dot)com, noah(at)leadboat(dot)com, Dave Page <dpage(at)pgadmin(dot)org>
Subject: Re: EDB Installer initcluster script changes - review requested
Date: 2025-02-05 06:30:11
Message-ID: CANFyU960y6f1rkF+5AsNv6SbRJG2BXGZqFVsmULGE2eSPChLgw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Manika,

The final patch looks fine to me. Hopefully, it'll be included in the
upcoming minor releases. It'll help a lot of users who use installers with
the locale containing non-ascii characters.

On Wed, Jan 29, 2025 at 8:34 PM Manika Singhal <
manika(dot)singhal(at)enterprisedb(dot)com> wrote:

>
> On Tue, Jan 28, 2025 at 11:52 PM Vladlen Popolitov <
> v(dot)popolitov(at)postgrespro(dot)ru> wrote:
>
>> Manika Singhal писал(а) 2025-01-28 16:42:
>> > Hi,
>>
>> >
>> "C:\Users\Administrator\AppData\Local\Temp\2\postgresql_installer_cd746730f8"
>> >> "C:\Program Files\PostgreSQL\17" "C:\Program
>> >> Files\PostgreSQL\17\data" 5432 "Turkish,Türkiye" 0
>>
>> Hi!
>>
>> Your example has not-ascii characters in command line. It is not good
>> practice.
>> If user switched on "Use UTF-8" flag in locale settings (it is user's
>> right to do it
>> on own computer), it forces all commands
>> use UTF-8 characters in command line. "Türkiye" will be transformed to
>> wrong text
>> by exec system call.
>>
>> "Use UTF-8" flag appeared in Windows 10. It helps correctly input and
>> output
>> UTF-8 text (including correct behaviour of psql.exe utility under
>> Windows).
>> As consequence, it consider as obsolete all programs that uses national
>> chars in command line or do not expect UTF-8 in command line.
>>
>> Hi Vladlen,
>
> I appreciate your input -- thank you!
> I tested the installer with the "Use UTF-8" flag enabled in the locale
> settings of my VM,
> and it worked as expected in that setup as well.
> The EDB installer provides a drop-down list of locales that include
> options with
> non-ascii characters (as shown in the screenshot I shared in my initial
> email).
> From there our script picks the locale containing non-ascii characters and
> converts it into BCP-47 code before using it for database initialization.
> Based on this, the UTF-8 setting does not appear to affect the installer.
> However, I would appreciate it if you could try the installation using the
> test-installer shared earlier,
> and let me know if you encounter any issues.
>
> > --------------------------------
>> > Thanks
>> > Manika Singhal
>> >
>> >
>> >
>> > Links:
>> > ------
>> > [1] https://github.com/EnterpriseDB/edb-installers/issues/98
>> > [2]
>> >
>> https://www.postgresql.org/message-id/CA+hUKGL5mBN3JQuebAPbX0yxDNtpui04J+KSy2F7KBbhLGaJig@mail.gmail.com
>>
>> --
>> Best regards,
>>
>> Vladlen Popolitov.
>>
>

--
Sandeep Thakkar

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2025-02-05 06:30:32 Re: Conflict detection for update_deleted in logical replication
Previous Message Tatsuro Yamada 2025-02-05 06:28:10 Re: Showing applied extended statistics in explain Part 2