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

From Alvaro Herrera
Subject Re: Multiple postmaster + RPM + locale issues
Date
Msg-id 20061020142954.GB6718@alvh.no-ip.org
Whole thread Raw
In response to Re: Multiple postmaster + RPM + locale issues  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > 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");
> 
> Egad.  What an ugly, unmaintainable crock.

Well, we could certainly not use it in the same form, but with a macro,
making it more future-proof.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Multiple postmaster + RPM + locale issues
Next
From: Darcy Buskermolen
Date:
Subject: misbehaving planer?