Skip to content

Commit

Permalink
As a result of this commit
Browse files Browse the repository at this point in the history
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=ba33775fd0302befddfc5102c51e0e9fb1f282d3

the value for lc_messages GUC in postgresql.conf is enclosed with
single quotes when the locale is other than C, else not as seen below:t

lc_messages = C # locale for system error message
lc_messages = 'en_US.UTF-8' # locale for system error message

The installer would read this GUC value and set it in the Locale
directive in /etc/postgres-reg.ini (on MacOS). Because of this
change the existing regex did not work and required change

tested on MacOS with both the locales i.e C and en_US.UTF-8

Testing done by: kritika.agarwal@enterprisedb.com
  • Loading branch information
sandeep-edb committed Feb 7, 2024
1 parent 62f51e1 commit c34fbda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/pgserver.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -3444,7 +3444,7 @@
<setInstallerVariableFromRegEx>
<name>actuallocale</name>
<text>${serverconfig}</text>
<pattern>^.*lc_messages\s*=\s*'([^']+)'\s+.*$</pattern>
<pattern>^.*lc_messages\s*=\s*'?(([^ \t'])+)'?\s+.*$</pattern>
<substitution>\1</substitution>
</setInstallerVariableFromRegEx>

Expand Down

0 comments on commit c34fbda

Please sign in to comment.