Re: Replication logging

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Replication logging
Date: 2011-01-17 15:03:46
Message-ID: AANLkTi=SqwLhWbuLtO5K5jyK0zsmxBnXNnKVitbUZVuu@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jan 17, 2011 at 8:58 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>>>> What do you have in mind?
>>>
>>> Either having it controlled by log_connections, or perhaps have a
>>> log_highpriv_connections that controls replication *and* superuser, to
>>> be somewhat consistent.
>>
>> -1.  We could provide an option to turn this on and off, but I
>> wouldn't want it merged with log_connections or logging of superuser
>> connections.
>
> Fair enough, we could have a log_replication_connections as a separate
> one then? Or having one log_connections, one
> log_replication_connections and one log_superuser_connections?

log_replication_connections seems reasonable. Not sure about
log_superuser_connections.

>> Incidentally, I think ClientAuthentication_hook is sufficiently
>> powerful to allow logging of superuser connections but no others, if
>> someone wanted to write a contrib module.  That doesn't necessarily
>> mean an in-core facility wouldn't be useful too, but it's at least
>> worth thinking about using the hook.
>
> Do we have an example of this hook somewhere already? If not, it could
> be made into a useful example of that, perhaps?

contrib/auth_delay

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2011-01-17 15:05:05 Re: SSI patch version 12
Previous Message Peter Eisentraut 2011-01-17 14:41:42 Re: [PATCH] Return command tag 'REPLACE X' for CREATE OR REPLACE statements.