Re: pg_config, pg_service.conf, postgresql.conf ....

Поиск
Список
Период
Сортировка
От Mark Kirkwood
Тема Re: pg_config, pg_service.conf, postgresql.conf ....
Дата
Msg-id 4404EF45.7040401@paradise.net.nz
обсуждение исходный текст
Ответ на Re: pg_config, pg_service.conf, postgresql.conf ....  ("Mark Woodward" <pgsql@mohawksoft.com>)
Ответы Re: pg_config, pg_service.conf, postgresql.conf ....  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Mark Woodward wrote:
>>Mark Woodward wrote:
>>
>>>>After takin a swig o' Arrakan spice grog, pgsql@mohawksoft.com ("Mark
>>>>Woodward") belched out:
>>
>>>>I'm not keen on the Windows .ini file style sectioning; that makes it
>>>>look like a mix between a shell script and something else.  It should
>>>>be one or the other.  It probably should be directly executable by
>>>>something...
>>>
>>>
>>>Hmm, while I agree that "ini" file is kind of ugly, it is fairly common
>>>in
>>>the industry, human readable, and does what it needed.
>>>
>>>
>>
>>You could follow the UNIX style for such files e.g. /etc/hosts,
>>/etc/services (and also pg_hba.conf).
> 
> The /etc/hosts file does not allow a hierarchical representation of a
> group that contains zero or more name/value pairs.
> 

Do you need name, value pairs? I was thinking that something like:

# Postgres Cluster Registration
#
# PG_HOME PGDATA PORT
/usr/local/pg7.4.1   /vol01/pggeo      5435
/usr/local/pg7.4.1   /vol01/pgicdmdb   5434
/usr/local/pg7.4.1   /vol03/pg74       5432


Clearly other fields are possible (like ALIAS for the names you were 
using, and OPTS for extra arguments).

This sort of layout is easily readable (more easily readable for those 
of us used to standard UNIX config files) and simply parsable too.

Cheers

M


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Mark Woodward"
Дата:
Сообщение: Re: pg_config, pg_service.conf, postgresql.conf ....
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Adding an ignore list to pg_restore, prototype patch #1