Re: format_datum debugging function

From: Jelte Fennema-Nio <postgres(at)jeltef(dot)nl>
To: Paul Jungwirth <pj(at)illuminatedcomputing(dot)com>
Cc: Aleksander Alekseev <aleksander(at)timescale(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: format_datum debugging function
Date: 2024-08-12 21:30:32
Message-ID: CAGECzQQhtGsQSkBKGX7JC2QS7woVPM=PcOTO2yC49rOZFah1NA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 12 Aug 2024 at 23:15, Paul Jungwirth
<pj(at)illuminatedcomputing(dot)com> 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 you forgot to attach the patch. Or is it just a proposal?
>
> Sorry, patch attached here.

+1 for the idea. And the code looks trivial enough. I think this
should also contain a print_datum function too though.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2024-08-12 21:32:45 Re: Introduce XID age and inactive timeout based replication slot invalidation
Previous Message Jelte Fennema-Nio 2024-08-12 21:26:02 Re: Returning from a rule with extended query protocol