Re: errbacktrace

From: Dmitry Dolgov <9erthalion6(at)gmail(dot)com>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: errbacktrace
Date: 2019-07-08 15:28:01
Message-ID: CA+q6zcViaQ-Lpgd3ELnZ-+UqDEL4SqWWLLCARHPSyd5nYageuQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Sat, Jun 29, 2019 at 7:41 AM Jaime Casanova <jaime(dot)casanova(at)2ndquadrant(dot)com> wrote:
>
> This is certainly a very useful thing. Sadly, it doesn't seem to compile when
> trying to use libunwind.

Yeah, the same for me. To make it works I've restricted libunwind to local
unwinding only:

#ifdef USE_LIBUNWIND
#define UNW_LOCAL_ONLY
#include <libunwind.h>
#endif

And result looks pretty nice:

2019-07-08 17:24:08.406 CEST [31828] ERROR: invalid input syntax for
type integer: "foobar" at character 12
2019-07-08 17:24:08.406 CEST [31828] BACKTRACE: #0
pg_strtoint32+0x1d1 [0x000055fa389bcbbe]
#1 int4in+0xd [0x000055fa38976d7b]
#2 InputFunctionCall+0x6f [0x000055fa38a488e9]
#3 OidInputFunctionCall+0x44 [0x000055fa38a48b0d]
#4 stringTypeDatum+0x33 [0x000055fa386e222e]
#5 coerce_type+0x26d [0x000055fa386ca14d]
#6 coerce_to_target_type+0x79 [0x000055fa386c9494]
#7 transformTypeCast+0xaa [0x000055fa386d0042]
#8 transformExprRecurse+0x22f [0x000055fa386cf650]
#9 transformExpr+0x1a [0x000055fa386cf30a]
#10 transformTargetEntry+0x79 [0x000055fa386e1131]
#11 transformTargetList+0x86 [0x000055fa386e11ce]
#12 transformSelectStmt+0xa1 [0x000055fa386a29c9]
#13 transformStmt+0x9d [0x000055fa386a345a]
#14 transformOptionalSelectInto+0x94 [0x000055fa386a3f49]
#15 transformTopLevelStmt+0x15 [0x000055fa386a3f88]
#16 parse_analyze+0x4e [0x000055fa386a3fef]
#17 pg_analyze_and_rewrite+0x3e [0x000055fa3890cfa5]
#18 exec_simple_query+0x35b [0x000055fa3890d5b5]
#19 PostgresMain+0x91f [0x000055fa3890f7a8]
#20 BackendRun+0x1ac [0x000055fa3887ed17]
#21 BackendStartup+0x15c [0x000055fa38881ea1]
#22 ServerLoop+0x1e6 [0x000055fa388821bb]
#23 PostmasterMain+0x1101 [0x000055fa388835a1]
#24 main+0x21a [0x000055fa387db1a9]
#25 __libc_start_main+0xe7 [0x00007f3d1a607fa7]
#26 _start+0x2a [0x000055fa3858e4ea]

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2019-07-08 15:36:09 Re: tableam vs. TOAST
Previous Message Bruce Momjian 2019-07-08 15:25:10 Re: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS)