Re: pg_config/share_dir

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_config/share_dir
Date: 2005-09-08 01:03:27
Message-ID: 1803.1126141407@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> what would anyone want to do with pg_config --localedir? Certainly not
> store the locale files of his own module there.

I'm wondering why localedir is even treated as an independently settable
directory in the first place. Why doesn't the code just use PGSHAREDIR
and plaster on a hardwired "/locale"?

> There is a point to be made that sysconfdir should be exposed, perhaps
> for the benefit of GUI configuration editors, but that seems
> theoretical to me.

Certainly we make only minimal use of sysconfdir at present. But we
have the infrastructure for it in configure, path.c, etc, and it seems
to me that pg_config support should be considered part of that
infrastructure. If it's not important enough to be in pg_config, why
is it a separate option at all?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2005-09-08 01:06:49 Re: Attention PL authors: want to be listed in template table?
Previous Message Tom Lane 2005-09-08 00:57:42 Re: initdb profiles