Re: Debugging a function - what's the best way to do this quickly? - Mailing list pgsql-general

From Michael Nolan
Subject Re: Debugging a function - what's the best way to do this quickly?
Date
Msg-id CAOzAquLD3rbj9UEeZ7TVchqMY0g=GfOSduoe8o=2m=VPcN+ovg@mail.gmail.com
Whole thread Raw
In response to Debugging a function - what's the best way to do this quickly?  (Kevin Burke <kev@inburke.com>)
Responses Re: Debugging a function - what's the best way to do this quickly?
List pgsql-general


On Tue, Dec 19, 2017 at 1:24 PM, Kevin Burke <kev@inburke.com> wrote:
I'm writing a function that looks a little like this:


This seems pretty cumbersome. Is there an easier way I am missing? Specifically it would be neat if it was easier to visualize the intermediate steps in the query production. If there are professional tools that help with this I would appreciate pointers to those as well.

Assuming it's not a function in production yet, put some log statements in it, then check the logs.  If it's already in production, you'll probably have to create a separate version of the function for testing.
--
Mike Nolan

pgsql-general by date:

Previous
From: Melvin Davidson
Date:
Subject: Re: Debugging a function - what's the best way to do this quickly?
Next
From: Kevin Burke
Date:
Subject: Re: Debugging a function - what's the best way to do this quickly?