Re: log_min_messages per backend type - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: log_min_messages per backend type
Date
Msg-id 202601211450.rie5wfgod6eg@alvherre.pgsql
Whole thread Raw
In response to Re: log_min_messages per backend type  ("Euler Taveira" <euler@eulerto.com>)
List pgsql-hackers
On 2026-Jan-15, Euler Taveira wrote:

> @@ -586,6 +588,8 @@ SubPostmasterMain(int argc, char *argv[])
>      IsPostmasterEnvironment = true;
>      whereToSendOutput = DestNone;
>  
> +    MyBackendType = B_BACKEND;
> +
>      /*
>       * Capture the end of process creation for logging. We don't include the
>       * time spent copying data from shared memory and setting up the backend.

BTW I think SubPostmasterMain() shouldn't do this.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"Curiosity is the hope that something wondrous waits just out of sight,
for we are surrounded by a garden of miracles"                       (Namron)
                           (Marjorie Liu and Sana Takeda, Monstress: Inferno)



pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Newly created replication slot may be invalidated by checkpoint
Next
From: Alexander Pyhalov
Date:
Subject: Remove no-op pull_var_clause flag