pgsql: Fix initdb --no-locale.

2023-04-21 Thread Jeff Davis
Fix initdb --no-locale. Discussion: https://postgr.es/m/[email protected] Reported-by: Andrew Gierth Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/5cd1a5af4d17496a58678c8eb7ab792119c2d723 Modified Files -- src/bin/initdb/initdb.c

pgsql: Avoid character classification in regex escape parsing.

2023-04-21 Thread Jeff Davis
Avoid character classification in regex escape parsing. For regex escape sequences, just test directly for the relevant ASCII characters rather than using locale-sensitive character classification. This fixes an assertion failure when a locale considers a non-ASCII character, such as "൧", to be a

pgsql: Avoid character classification in regex escape parsing.

2023-04-21 Thread Jeff Davis
Avoid character classification in regex escape parsing. For regex escape sequences, just test directly for the relevant ASCII characters rather than using locale-sensitive character classification. This fixes an assertion failure when a locale considers a non-ASCII character, such as "൧", to be a

pgsql: Avoid character classification in regex escape parsing.

2023-04-21 Thread Jeff Davis
Avoid character classification in regex escape parsing. For regex escape sequences, just test directly for the relevant ASCII characters rather than using locale-sensitive character classification. This fixes an assertion failure when a locale considers a non-ASCII character, such as "൧", to be a

pgsql: Avoid character classification in regex escape parsing.

2023-04-21 Thread Jeff Davis
Avoid character classification in regex escape parsing. For regex escape sequences, just test directly for the relevant ASCII characters rather than using locale-sensitive character classification. This fixes an assertion failure when a locale considers a non-ASCII character, such as "൧", to be a

pgsql: Avoid character classification in regex escape parsing.

2023-04-21 Thread Jeff Davis
Avoid character classification in regex escape parsing. For regex escape sequences, just test directly for the relevant ASCII characters rather than using locale-sensitive character classification. This fixes an assertion failure when a locale considers a non-ASCII character, such as "൧", to be a

pgsql: Avoid character classification in regex escape parsing.

2023-04-21 Thread Jeff Davis
Avoid character classification in regex escape parsing. For regex escape sequences, just test directly for the relevant ASCII characters rather than using locale-sensitive character classification. This fixes an assertion failure when a locale considers a non-ASCII character, such as "൧", to be a

pgsql: Reorder connection markers in loadbalance tests

2023-04-21 Thread Daniel Gustafsson
Reorder connection markers in loadbalance tests Commit 7f5b198 introduced TAP tests that use string literals to mark the presence of a query in server logs. Reorder the markers to make sure they are used in alphabetical order for easier debugging. Author: Gurjeet Singh Reviewed-by: Jelte Fennem

pgsql: Make libpq error messages consistent for translation

2023-04-21 Thread Daniel Gustafsson
Make libpq error messages consistent for translation The errormessage for an incorrect require_auth method wasn't using the common "invalid %s value" errormessage which lessens the burden on our translators. Fix by changing to that format to make use of existing translations and to make error mes

pgsql: doc: Add documentation for PGLOADBALANCEHOSTS environment variab

2023-04-21 Thread Fujii Masao
doc: Add documentation for PGLOADBALANCEHOSTS environment variable in libpq. Commit 7f5b19817e introduced the PGLOADBALANCEHOSTS environment variable for connection load balancing in libpq. However, documentation for this variable was missing. Author: Fujii Masao Reviewed-by: Jelte Fennema Discus