Re: proposal: enhancing plpgsql debug API - returns text value of variable content - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal: enhancing plpgsql debug API - returns text value of variable content
Date
Msg-id CAFj8pRAKsrJ__BR_zXdCvPZy86nodn_aNFDdpQBJmgLjjs=nAQ@mail.gmail.com
Whole thread Raw
In response to Re: proposal: enhancing plpgsql debug API - returns text value of variable content  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal: enhancing plpgsql debug API - returns text value of variable content  (Aleksander Alekseev <aleksander@timescale.com>)
List pgsql-hackers


st 21. 7. 2021 v 22:23 odesílatel Pavel Stehule <pavel.stehule@gmail.com> napsal:
Hi

pá 16. 7. 2021 v 18:40 odesílatel Pavel Stehule <pavel.stehule@gmail.com> napsal:
Hi

pá 16. 7. 2021 v 15:05 odesílatel Aleksander Alekseev <aleksander@timescale.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.

with modified Makefile to force use option -I$(top_srcdir)/src/pl/plpgsql/src

override CPPFLAGS := $(CPPFLAGS) -I$(top_srcdir)/src/pl/plpgsql/src



Regards

Pavel




--
Best regards,
Aleksander Alekseev
Attachment

pgsql-hackers by date:

Previous
From: Greg Nancarrow
Date:
Subject: Re: Added schema level support for publication.
Next
From: vignesh C
Date:
Subject: Re: alter table set TABLE ACCESS METHOD