Re: proposal: enhancing plpgsql debug API - returns text value of variable content

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Aleksander Alekseev <aleksander(at)timescale(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: enhancing plpgsql debug API - returns text value of variable content
Date: 2021-07-21 20:23:29
Message-ID: CAFj8pRAg3si4g98x69WorTwCqAcNP+iuaqeniT5sLGhmQn0R4g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

pá 16. 7. 2021 v 18:40 odesílatel Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
napsal:

> Hi
>
> pá 16. 7. 2021 v 15:05 odesílatel Aleksander Alekseev <
> aleksander(at)timescale(dot)com> napsal:
>
>> Hi Pavel,
>>
>> > I would like to print content of variables - and now, I have to go some
>> > deeper than I would like. I need to separate between scalar, row, and
>> > record variables. PLpgSQL has code for it - but it is private.
>> > [...]
>>
>> The patch seems OK, but I wonder - would it be possible to write a test
>> on it?
>>
>
> Sure, it is possible - unfortunately - the size of this test will be
> significantly bigger than patch self.
>
> I'll try to write it some simply tracer, where this API can be used
>

I am sending an enhanced patch about the regress test for plpgsql's debug
API.

Regards

Pavel

>
>
>> --
>> Best regards,
>> Aleksander Alekseev
>>
>

Attachment Content-Type Size
enhancing-plpgsql-dbgapi-20210721.patch text/x-patch 38.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-07-21 21:33:19 Re: WIP: Relaxing the constraints on numeric scale
Previous Message Tom Lane 2021-07-21 19:56:23 Re: Git revision in tarballs