Re: proposal: better support for debugging of overloaded functions

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Abhijit Menon-Sen <ams(at)toroid(dot)org>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: proposal: better support for debugging of overloaded functions
Date: 2012-01-27 13:48:41
Message-ID: CAFj8pRATRcyR=xRrHwKj86FkaMhe=u-M5wzT_enQ6+vNtkreCA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello

2012/1/26 Abhijit Menon-Sen <ams(at)toroid(dot)org>:
> At 2011-11-24 17:44:16 +0100, pavel(dot)stehule(at)gmail(dot)com wrote:
>>
>> patch is relative long, but almost all are changes in regress tests.
>> Changes in plpgsql are 5 lines
>
> The change looks good in principle. The patch applies to HEAD with a bit
> of fuzz and builds fine… but it fails tests, because it's incomplete.
>
> Pavel, your patch doesn't contain any changes to pl_exec.c. Did you just
> forget to submit them? Anyway, some errcontext() calls need to be taught
> to print ->fn_signature rather than ->fn_name. I made those changes, and
> found some more failing tests.

It was my mistake - using fn_signature for runtime errors is good idea

>
> Updated patch attached. Ready for committer.

I found a small issue - there was uninitialized fn_signature for
online blocks so I append line

function->fn_signature = pstrdup(func_name); to
plpgsql_compile_inline(char *proc_source) function

modified patch is in attachment

Pavel

>
> -- ams

Attachment Content-Type Size
pavel-plpgsql-fnsig_rev.diff text/x-patch 48.0 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fred&Dani&Pandora 2012-01-27 13:58:59 Re: Multithread Query Planner
Previous Message Robert Haas 2012-01-27 13:38:57 Re: Group commit, revised