Re: postgresql.conf file and logging questions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: postgresql.conf file and logging questions
Дата
Msg-id 15722.1080487739@sss.pgh.pa.us
обсуждение исходный текст
Ответ на postgresql.conf file and logging questions  (admin@usachurch.com)
Список pgsql-admin
admin@usachurch.com writes:
> 1.  Where should the postgresql.conf file be to be recognized by the
> service on startup?  currently, it is inside my $PGDATA directory but
> all of its contents are commented out.

That's the correct file.  Uncomment anything you want to change.

> 2.  I can't find any log files for postgres.  Inside my /var/log/
> directory, there is an empty
> file called pgsql.  What do I have to do to get it to log errors,
> etc.

If you want to use that file you could add "-l /var/log/pgsql" to the
pg_ctl start command in your PG startup script.

> Is there a difference between normal logging and syslog logging?

Yes, one goes to a file and the other to syslog ;-)

I'd recommend syslog on the whole, since you don't normally have to
worry about rotating logfiles when you use syslog.

            regards, tom lane

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

Предыдущее
От: "Peter Galbavy"
Дата:
Сообщение: Re: License for PostgreSQL for commercial purpose
Следующее
От: Tom Lane
Дата:
Сообщение: Re: License for PostgreSQL for commercial purpose