Re: Multiple postmaster + RPM + locale issues - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Multiple postmaster + RPM + locale issues
Date
Msg-id 20061020135351.GF27869@alvh.no-ip.org
Whole thread Raw
In response to Re: Multiple postmaster + RPM + locale issues  (Devrim GUNDUZ <devrim@commandprompt.com>)
Responses Re: Multiple postmaster + RPM + locale issues  (Devrim GUNDUZ <devrim@commandprompt.com>)
Re: Multiple postmaster + RPM + locale issues  (Peter Eisentraut <peter_e@gmx.net>)
Re: Multiple postmaster + RPM + locale issues  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Devrim GUNDUZ wrote:
> Hi Peter,
> 
> On Fri, 2006-10-20 at 15:37 +0200, Peter Eisentraut wrote:
> > > Did you look at how the debian guys handle this?
> > 
> > pei@bell:~$ ls -1 /usr/share/locale/de/LC_MESSAGES/p* 
>  <snip>
> 
> Quick question: Could you please point me a way to change the names
> of .mo files and make each PostgreSQL release see its own locale
> directory?

The package files are here:

http://packages.debian.org/unstable/misc/postgresql-8.1

you can find the patch Debian applies following a link below (the
diff.gz), on which you see the method for doing this.

ISTM these parts of that patch should be applied to our code:

+--- postgresql-8.1beta3-old/src/bin/pg_controldata/pg_controldata.c    2005-10-03 02:28:41.000000000 +0200
++++ postgresql-8.1beta3/src/bin/pg_controldata/pg_controldata.c    2005-10-13 18:00:42.000000000 +0200
+@@ -73,7 +73,7 @@
+   char       *strftime_fmt = "%c";
+   const char *progname;
+ 
+-  set_pglocale_pgservice(argv[0], "pg_controldata");
++  set_pglocale_pgservice(argv[0], "pg_controldata-8.1");

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: row-wise comparison question/issue
Next
From: Tom Lane
Date:
Subject: Re: row-wise comparison question/issue