Re: user logging info

Поиск
Список
Период
Сортировка
От Glyn Astill
Тема Re: user logging info
Дата
Msg-id 2019574206.5819817.1464857224506.JavaMail.yahoo@mail.yahoo.com
обсуждение исходный текст
Ответ на user logging info  (Dhandapani Shanmugam <postgresql95@gmail.com>)
Ответы Re: user logging info
Список pgsql-admin
> From: Dhandapani Shanmugam <postgresql95@gmail.com>
>To: pgsql-admin@postgresql.org
>Sent: Thursday, 2 June 2016, 7:21
>Subject: [ADMIN] user logging info
>
>
>
>Hi All,
>
>
>Good Day!
>
>
>Please clarify me on below points :)
>
>
>-Can we see user connections on any system tables(active + past) in postgreSQL, Please share me the SQL if it is
possible.

>

Can you clarify what you want to see here?  You can see the current and last queries of connections with "SELECT * FROM
pg_stat_activity". If you want auditing or logging of all activity then depending on what you need it's possible with
triggersor an extension like pg_audit. 

>
>-.I assume postgresql.conf can be modified so that user connections are logged in a log file.

>

Yes turn on log_connections and log_disconnections, see the "what to log" section here:

    https://www.postgresql.org/docs/current/static/runtime-config-logging.html

>>Is this best approach or how can we do to check for the user connection details? any advise is really helpful. Thanks
inAdvance 
>
>
>-Dhandapani
>
>


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

Предыдущее
От: Dhandapani Shanmugam
Дата:
Сообщение: user logging info
Следующее
От: Dhandapani Shanmugam
Дата:
Сообщение: Re: user logging info