Re: pg_config/share_dir

Поиск
Список
Период
Сортировка
Искать
От
Darcy Buskermolen
Тема
Re: pg_config/share_dir
Дата
Msg-id
200509080833.30272.darcy@wavefire.com
Ответ на
Re: pg_config/share_dir (Andrew Dunstan)
Список
Дерево обсуждения
pg_config/share_dir Andrew Dunstan <andrew@dunslane.net>
Re: pg_config/share_dir Peter Eisentraut <peter_e@gmx.net>
Re: pg_config/share_dir Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_config/share_dir Peter Eisentraut <peter_e@gmx.net>
Re: pg_config/share_dir Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_config/share_dir Peter Eisentraut <peter_e@gmx.net>
Re: pg_config/share_dir Bruce Momjian <pgman@candle.pha.pa.us>
Re: pg_config/share_dir "Jim C. Nasby" <jnasby@pervasive.com>
Re: pg_config/share_dir Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_config/share_dir Andrew Dunstan <andrew@dunslane.net>
Re: pg_config/share_dir Darcy Buskermolen <darcy@wavefire.com>
Re: pg_config/share_dir Peter Eisentraut <peter_e@gmx.net>
Re: pg_config/share_dir Darcy Buskermolen <darcy@wavefire.com>
Re: pg_config/share_dir Peter Eisentraut <peter_e@gmx.net>
Re: pg_config/share_dir Andrew Dunstan <andrew@dunslane.net>
Re: pg_config/share_dir Peter Eisentraut <peter_e@gmx.net>
Re: pg_config/share_dir Andrew Dunstan <andrew@dunslane.net>
Re: pg_config/share_dir Darcy Buskermolen <darcy@wavefire.com>
Re: pg_config/share_dir Peter Eisentraut <peter_e@gmx.net>
On Wednesday 07 September 2005 17:31, Andrew Dunstan wrote:
> Darcy Buskermolen wrote:
> >On Wednesday 07 September 2005 15:52, Andrew Dunstan wrote:
> >>Peter Eisentraut wrote:
> >>>Andrew Dunstan wrote:
> >>>>pg_config doesn't currently seem to have an option to report the
> >>>>share_dir. Should it?
> >>>
> >>>Is there a case where a user would need anything from there?
> >
> >the way wo do this in slony is with the following macro:
> >
> >AC_MSG_CHECKING(for postgresql.conf.sample)
> >PGSHARE_POSSIBLE_LOCATIONS="${with_pgsharedir} /usr/local/pgsql/share
> > /usr/local/share/postgresql /usr/share/postgresql /usr/local/share/pgsql
> > /usr/share/pgsql /opt/local/pgsql/share /opt/pgsql/share
> > ${PG_BINDIR}/../share
> >for i in $PGSHARE_POSSIBLE_LOCATIONS; do
> >    if test -s "$i/postgresql.conf.sample" ; then
> >        PG_SHAREDIR=$i/
> >        break;
> >    fi
> >done
> >
> >if test -n "$PG_SHAREDIR" ; then
> >    AC_MSG_RESULT(${PG_SHAREDIR}postgresql.conf.sample)
> >    AC_DEFINE(PG_SHAREDIR_VERIFIED,1,[PostgreSQL sharedir])
> >else
> >    AC_MSG_RESULT(not found)
> >    AC_MSG_ERROR(
> >        postgresql.conf.sample not found! Please specify the sharedir
> >        with --with-pgsharedir=
> >        )
> >fi
> >
> >
> >(where ${PG_BINDIR} is the result of: pg_config --bindir )
>
> That's foul, and looks horribly fragile too. You have just provided what
> seems to me a perfect use case.

Yes it is foul :-) but it's the best we could do given the tools we had to 
work with.....  which is precisely why we provide the failover to 
-with-pgsharedir= incase the system can't get it right.

>
> cheers
>
> andrew
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq

-- 
Darcy Buskermolen
Wavefire Technologies Corp.

http://www.wavefire.com
ph: 250.717.0200
fx: 250.763.1759

В списке pgsql-hackers по дате отправления
От: Darcy Buskermolen
Дата:
Сообщение: Re: pg_config/share_dir
От: mark@mark.mielke.cc
Дата:
Сообщение: Re: uuid type for postgres
FAQ