RE: How is the PostgreSQL debuginfo file generated

2017-11-27 Thread Rui Hai Jiang
From: Tom Lane Sent: Friday, November 24, 2017 12:50:37 AM To: Rui Hai Jiang Cc: pgsql-hack...@postgresql.org Subject: Re: How is the PostgreSQL debuginfo file generated Rui Hai Jiang writes: > I’m wondering how to build the debuginfo package from the PostgreSQL sou

Re: How is the PostgreSQL debuginfo file generated

2017-11-23 Thread 高增琦
A little trick: 1. configure with —enable-debug, run “make install”, use this build result as debuginfo 2. then run “make install-strip”, use this result as release However the it is not the regular debuginfo, you still can call gdb with it. Additionally, you can dump the real debuginfo from it

Re: How is the PostgreSQL debuginfo file generated

2017-11-23 Thread Craig Ringer
On 23 November 2017 at 18:38, Rui Hai Jiang wrote: > Hello hackers, > > > > I’m wondering how to build the debuginfo package from the PostgreSQL > source. > > > > For example to generate something like this one : > postgresql91-debuginfo.x86_64. > > > > Is there existing support in the current P

Re: How is the PostgreSQL debuginfo file generated

2017-11-23 Thread Tom Lane
Rui Hai Jiang writes: > I’m wondering how to build the debuginfo package from the PostgreSQL source. > For example to generate something like this one : > postgresql91-debuginfo.x86_64. On platforms where such things exist, that's handled by the packaging system, not by PG proper. You should