pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Dhandapani Shanmugam <postgresql95@gmail.com>
Cc: Glyn Astill <glynastill@yahoo.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: user logging info
Date: Thu, 2 Jun 2016 11:44:49 +0200
Message-ID: <20160602094448.GB8193@depesz.com> (raw)
In-Reply-To: <CAAj4MFG8RjDPnJFiFcF8XpN6EkRK45agz10PCA9DEN7YuRj7yg@mail.gmail.com>
References: <CAAj4MFES75wcVzO+K52PetsfFROUQ0bNMdJHn4HW0G-sb8D+uA@mail.gmail.com>
	<2019574206.5819817.1464857224506.JavaMail.yahoo@mail.yahoo.com>
	<CAAj4MFG8RjDPnJFiFcF8XpN6EkRK45agz10PCA9DEN7YuRj7yg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Thu, Jun 02, 2016 at 02:33:34PM +0530, Dhandapani Shanmugam wrote:
> I want to see the list of user who logged into XXX database in last 90
> days. How can we do this please

You can't really. Unless you will modify postgresql.conf (or any other
means of setting config variables), and you'll set log_connections.

You might want to read
https://www.postgresql.org/docs/current/static/runtime-config-logging.html
or https://www.depesz.com/2011/05/06/understanding-postgresql-conf-log/

Best regards,

depesz



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (6+ messages)  latest in thread

Message-ID: <20160602094448.GB8193@depesz.com>
Permalink:  ../20160602094448.GB8193@depesz.com/
Also on:    postgresql.org/message-id/20160602094448.GB8193@depesz.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: depesz@depesz.com, postgresql95@gmail.com, glynastill@yahoo.co.uk
  Subject: Re: user logging info
  In-Reply-To: <20160602094448.GB8193@depesz.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox