pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: Daulat <daulat.dba@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: User specific log file in Postgres
Date: Tue, 23 Nov 2021 13:49:06 +0100
Message-ID: <20211123124906.GA16514@depesz.com> (raw)
In-Reply-To: <CALfOM6+ihb-9+GksnBFq93KxAYp3TJkaUkcvPLFbO5xDwj7_CQ@mail.gmail.com>
References: <CALfOM6+ihb-9+GksnBFq93KxAYp3TJkaUkcvPLFbO5xDwj7_CQ@mail.gmail.com>

On Tue, Nov 23, 2021 at 05:24:23PM +0530, Daulat wrote:
> Is it possible to set up individual logging files for specific users in
> Postgresql?

Technically yes. Practically - no.

You could redirect logs to syslog, and make syslog filter messages based
on user, but it's unlikely to work well.

Best regards,

depesz






view thread (5+ messages)  latest in thread

Message-ID: <20211123124906.GA16514@depesz.com>
Permalink:  ../20211123124906.GA16514@depesz.com/
Also on:    postgresql.org/message-id/20211123124906.GA16514@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, daulat.dba@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: User specific log file in Postgres
  In-Reply-To: <20211123124906.GA16514@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