Re: log_min_messages per backend type

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: "Jonathan Gonzalez V(dot)" <jonathan(dot)abdiel(at)gmail(dot)com>
Cc: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, Euler Taveira <euler(at)eulerto(dot)com>, japin <japinli(at)hotmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: log_min_messages per backend type
Date: 2026-07-21 13:07:33
Message-ID: al9UOWZfiwOioZJB@alvherre.pgsql
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2026-Jul-21, Jonathan Gonzalez V. wrote:

> but the
> second one is breaking the detection of the messages here:
>
> @@ -2392,6 +2393,8 @@ check_log_min_messages(char **newval, void **extra, GucSource source)
> guc_free(rawstring);
> return false;
> }
> + rawstring_len = strlen(rawstring);
> + guc_free(rawstring);
>
>
> The rawstring is being reference in the elemlist, so the free is making
> the string empty when is going to be used later:

Yeah, the second one is clearly busted. Please consider it withdrawn.

--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
"After a quick R of TFM, all I can say is HOLY CR** THAT IS COOL! PostgreSQL was
amazing when I first started using it at 7.2, and I'm continually astounded by
learning new features and techniques made available by the continuing work of
the development team."
Berend Tober, http://archives.postgresql.org/pgsql-hackers/2007-08/msg01009.php

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christoph Berg 2026-07-21 13:09:41 Re: Available disk space per tablespace
Previous Message Andrey Borodin 2026-07-21 12:50:23 Re: pg19b1: TRAP: failed Assert("pgstat_bktype_io_stats_valid(bktype_shstats, MyBackendType)")