Re: Trouble with query logging
| От | Gaetano Mendola |
|---|---|
| Тема | Re: Trouble with query logging |
| Дата | |
| Msg-id | 41513811.9030800@bigfoot.com обсуждение исходный текст |
| Ответ на | Trouble with query logging (ppi@amug.org) |
| Список | pgsql-general |
ppi@amug.org wrote: > I'm having difficulty getting postgresql to log queries. > > I have the following set in my postgresql.conf: > > ------------------------------- > # - Syslog - > > syslog = 2 # range 0-2; 0=stdout; 1=both; 2=syslog > syslog_facility = 'LOCAL0' > syslog_ident = 'postgres' > > log_statement = yes > > ------------------------------- > > I've done a: > > pg_ctl reload -D /usr/local/pgsql/data/ > > and have even done a restart, but queries are not getting logged (to > /var/log/messages). > > (Error messages are getting logged, however.) You have to configure your syslogd to accept messages from LOCAL0, usualy I add to syslogd.conf: LOCAL0.* -/var/log/postgresql.log don't forget to SIGHUP the syslogd Regards Gaetano Mendola
В списке pgsql-general по дате отправления: