Re: format_datum debugging function

2024-08-15 Thread Tom Lane
Peter Eisentraut writes: > On 14.08.24 17:46, Paul Jungwirth wrote: >> Are you doing something to get macro expansion? I've never gotten my gdb >> to see #defines, although in theory this configure line should do it, >> right?: > Oh I see, you don't have the F_* constants available then. Maybe

Re: format_datum debugging function

2024-08-15 Thread Peter Eisentraut
On 14.08.24 17:46, Paul Jungwirth wrote: On 8/14/24 02:16, Peter Eisentraut wrote: On 12.08.24 23:15, Paul Jungwirth wrote: On 8/12/24 04:32, Aleksander Alekseev wrote: [...] This function takes a Datum and the appropriate out function, and returns a char *. So you can do this: (gdb) call fo

Re: format_datum debugging function

2024-08-14 Thread Paul Jungwirth
On 8/14/24 02:16, Peter Eisentraut wrote: On 12.08.24 23:15, Paul Jungwirth wrote: On 8/12/24 04:32, Aleksander Alekseev wrote: [...] This function takes a Datum and the appropriate out function, and returns a char *. So you can do this: (gdb) call format_datum(range_out, $1) $2 = 0x59162692d

Re: format_datum debugging function

2024-08-14 Thread Peter Eisentraut
On 12.08.24 23:15, Paul Jungwirth wrote: On 8/12/24 04:32, Aleksander Alekseev wrote: [...] This function takes a Datum and the appropriate out function, and returns a char *. So you can do this: (gdb) call format_datum(range_out, $1) $2 = 0x59162692d938 "[1,4)" I assume a patch like this doe

Re: format_datum debugging function

2024-08-12 Thread Jelte Fennema-Nio
On Mon, 12 Aug 2024 at 23:15, Paul Jungwirth wrote: > On 8/12/24 04:32, Aleksander Alekseev wrote: > >> (gdb) call format_datum(range_out, $1) > >> $2 = 0x59162692d938 "[1,4)" > >> > >> I assume a patch like this doesn't need documentation. Does it need a > >> test? Anything else? > > > > I think

Re: format_datum debugging function

2024-08-12 Thread Paul Jungwirth
On 8/12/24 04:32, Aleksander Alekseev wrote: [...] This function takes a Datum and the appropriate out function, and returns a char *. So you can do this: (gdb) call format_datum(range_out, $1) $2 = 0x59162692d938 "[1,4)" I assume a patch like this doesn't need documentation. Does it need a te

Re: format_datum debugging function

2024-08-12 Thread Aleksander Alekseev
Hi Paul, > [...] This function takes a Datum and the appropriate out function, and > returns a char *. So you > can do this: > > (gdb) call format_datum(range_out, $1) > $2 = 0x59162692d938 "[1,4)" > > I assume a patch like this doesn't need documentation. Does it need a test? > Anything else?