Re: Database connection log

Поиск
Список
Период
Сортировка
От Christoph Moench-Tegeder
Тема Re: Database connection log
Дата
Msg-id 20180614145157.GA99890@elch.exwg.net
обсуждение исходный текст
Ответ на Database connection log  (Tiffany Thang <tiffanythang@gmail.com>)
Список pgsql-general
## Tiffany Thang (tiffanythang@gmail.com):

> Does PostgreSQL keep a log of client connections to the database like
> Oracle's listener.log? I would like to extract information such as how many
> connections are made to the database daily, the IP addresses they
> originated from and the schemas they are connected to. Would it be possible
> to extract the above information in PostgreSQL?

Set "log_connections" to "on":
https://www.postgresql.org/docs/10/static/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT

Regards,
Christoph

-- 
Spare Space


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

Предыдущее
От: Tiffany Thang
Дата:
Сообщение: Database connection log
Следующее
От: Pierre Timmermans
Дата:
Сообщение: Re: Database connection log