Re: Support a wildcard in backtrace_functions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Support a wildcard in backtrace_functions
Date
Msg-id 202403080958.jclw773pws33@alvherre.pgsql
Whole thread Raw
In response to Re: Support a wildcard in backtrace_functions  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Responses Re: Support a wildcard in backtrace_functions
List pgsql-hackers
On 2024-Mar-08, Bharath Rupireddy wrote:

> This works only if '* 'is specified as the only one character in
> backtrace_functions = '*', right? If yes, what if someone sets
> backtrace_functions = 'foo, bar, *, baz'?

It throws an error, as expected.  This is a useless waste of resources:
checking for "foo" and "bar" is pointless, since the * is going to give
a positive match anyway.  And the "baz" is a waste of memory which is
never going to be checked.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"I love the Postgres community. It's all about doing things _properly_. :-)"
(David Garamond)



pgsql-hackers by date:

Previous
From: Andy Fan
Date:
Subject: Re: a wrong index choose when statistics is out of date
Next
From: "Andrey M. Borodin"
Date:
Subject: Re: speed up a logical replica setup