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

From: Michael Nolan <htfoot(at)gmail(dot)com>
To: Kevin Burke <kev(at)inburke(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Debugging a function - what's the best way to do this quickly?
Date: 2017-12-19 19:43:35
Message-ID: CAOzAquLD3rbj9UEeZ7TVchqMY0g=GfOSduoe8o=2m=VPcN+ovg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Dec 19, 2017 at 1:24 PM, Kevin Burke <kev(at)inburke(dot)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.
>
> --
> Kevin Burke
> 925.271.7005 <(925)%20271-7005> | kev.inburke.com
>

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Burke 2017-12-19 19:47:55 Re: Debugging a function - what's the best way to do this quickly?
Previous Message Melvin Davidson 2017-12-19 19:35:34 Re: Debugging a function - what's the best way to do this quickly?