Fix NLS file reference in pg_createsubscriber
authorAlvaro Herrera <[email protected]>
Fri, 2 Aug 2024 16:05:38 +0000 (12:05 -0400)
committerAlvaro Herrera <[email protected]>
Fri, 2 Aug 2024 16:05:38 +0000 (12:05 -0400)
pg_createsubscriber is referring to a non-existent message translation
file, causing NLS to not work correctly. This command should use the
same file as pg_basebackup.

Author: Kyotaro Horiguchi <[email protected]>
Discussion: https://postgr.es/m/20240802.115717.1083441453338151622[email protected]

src/bin/pg_basebackup/pg_createsubscriber.c

index 3e67ce20710e8e38c8da8c4a552f57cfdf1db03e..6295783cdee4404e128c7535b73a3ff0d64cb3bb 100644 (file)
@@ -1904,7 +1904,7 @@ main(int argc, char **argv)
    pg_logging_init(argv[0]);
    pg_logging_set_level(PG_LOG_WARNING);
    progname = get_progname(argv[0]);
-   set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_createsubscriber"));
+   set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_basebackup"));
 
    if (argc > 1)
    {