[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: links to logs in /etc? (/etc/postgresql/7.4/main/log)



On Tue, 14 Jun 2005, Martin Pitt wrote:

> Hi!
>
> Erik Steffl [2005-06-12 16:25 -0700]:
> >   why is there a link to logs in /etc?
> >
> >   /etc/postgresql/7.4/main/log is a link to
> > /var/log/postgresql/postgresql-7.4-main.log
>
> The basic idea of the new cluster system was to have the complete
> information about a cluster's files in
> /etc/postgresql/<version>/<cluster>. That includes the location of the
> log files and the data directory, which are configured using these
> symlinks to their actual position.
>
> This makes it possible to move around clusters, rename them, or even
> have several postmasters log to the same file without assuming any
> preferred log file name in the infrastructure.

/var/log/postgres/$version/$cluster/....
/var/lib/postgres/$version/$cluster/....
/etc/postgres/$version/$cluster/...

Is it really that difficult?



Reply to: