From: | Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com> |
---|---|
To: | michael(at)paquier(dot)xyz |
Cc: | tgl(at)sss(dot)pgh(dot)pa(dot)us, pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | Re: Setting log_connection in connection string doesn't work |
Date: | 2021-10-27 02:53:09 |
Message-ID: | 20211027.115309.1302464757802948949.horikyota.ntt@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
At Wed, 27 Oct 2021 10:55:31 +0900, Michael Paquier <michael(at)paquier(dot)xyz> wrote in
> On Wed, Oct 27, 2021 at 10:24:05AM +0900, Kyotaro Horiguchi wrote:
> > I don't know. The fact is that it's a superuser-backend variable that
> > is silently ignored (but acutally seems to be set in the session).
> > Setting log_disconnection the same way works (of course the impliction
> > of this is far less significant that the log_connection case).
>
> fe550b2 is the commit that has changed both those parameters to be
> PGC_SU_BACKEND, with the commit log mentioning the case you are
> describing. That would be the area of this thread:
> https://www.postgresql.org/message-id/20408.1404329822@sss.pgh.pa.us
Thanks for the pointer. (I didn't remember of that thread..)
> As Tom and this thread are saying, there may be a use-case for
> making log_connections more effective at startup so as superusers
> could hide their logs at will. However, honestly, I am not sure that
> this is worth spending time improving this as the use-case looks
> rather thin to me. Perhaps you are right and we could just mark both
I tend to agree.
> of those GUCs as PGC_SIGHUP, making the whole easier to understand and
> more consistent, though. If we do that, the patch is wrong, as the
> docs would also need a refresh.
Yeah, this is the full version of the patch.
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
Attachment | Content-Type | Size |
---|---|---|
0001-Change-log_-dis-connections-to-PGC_SIGHUP.patch | text/x-patch | 2.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Paul Martinez | 2021-10-27 03:02:08 | Re: [PATCH] Partial foreign key updates in referential integrity triggers |
Previous Message | Kyotaro Horiguchi | 2021-10-27 02:20:08 | Re: pg_receivewal starting position |