Re: elog/ereport VS misleading backtrace_function function address - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: elog/ereport VS misleading backtrace_function function address
Date
Msg-id 202405141141.ho2dj7xghmwx@alvherre.pgsql
Whole thread Raw
In response to Re: elog/ereport VS misleading backtrace_function function address  (Jakub Wartak <jakub.wartak@enterprisedb.com>)
Responses Re: elog/ereport VS misleading backtrace_function function address
List pgsql-hackers
On 2024-May-14, Jakub Wartak wrote:

> On Sun, May 12, 2024 at 10:33 PM Peter Eisentraut <peter@eisentraut.org> wrote:

> > Don't production builds use debug
> > symbols nowadays as well?
> 
> Reality is apparently mixed,at least from what I have checked :
> - all RHEL 7.x/8.x (PGDG and our forks) do NOT come with
> --enable-debug according to pg_config.

Ooh, yeah, that's true according to 

https://git.postgresql.org/gitweb/?p=pgrpms.git;a=blob;f=rpm/redhat/main/non-common/postgresql-16/main/postgresql-16.spec;h=ab2f6edc903f083e04b8f7a1d3bad8e1b7018791;hb=1a8b9fa7019d3f73322ca873b62dc0b33e73ed1d

 507 %if %beta
 508         --enable-debug \
 509         --enable-cassert \
 510 %endif

Maybe a better approach for this whole thing is to change the specs so
that --enable-debug is always given, not just for %beta.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/



pgsql-hackers by date:

Previous
From: Jelte Fennema-Nio
Date:
Subject: Re: JIT compilation per plan node
Next
From: Alexander Lakhin
Date:
Subject: Re: Avoid orphaned objects dependencies, take 3