Re: BUG #5867: wish: plpgsql print table for debug - Mailing list pgsql-bugs

From Merlin Moncure
Subject Re: BUG #5867: wish: plpgsql print table for debug
Date
Msg-id AANLkTi=pE5t=L+qHRrgxxpQNO2OEXmm1HJeZw_Sqy=Ui@mail.gmail.com
Whole thread Raw
In response to Re: BUG #5867: wish: plpgsql print table for debug  (Richard Neill <rjn@richardneill.org>)
List pgsql-bugs
On Thu, Mar 3, 2011 at 12:37 PM, Richard Neill <rjn@richardneill.org> wrote:
>
>> Sure it does. =A0You can pass the tuple to RAISE NOTICE easily enough.
>> It won't have all the same bells and whistles psql would supply, but
>> it prints out well enough for debugging. =A0Or at least it's never
>> bothered me.
>
> Sorry if I'm being dense, but I can't see how you can pass a tuple; I thi=
nk
> raise-notice only lets you pass individual strings/integers. But I don't
> think we can pass all of them without specifying in advance how many there
> are....

raise notice '%', (select array_to_string(array(select foo from foo), E'\n'=
));

:^).

merlin

pgsql-bugs by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: BUG #5867: wish: plpgsql print table for debug
Next
From: Dimitri Fontaine
Date:
Subject: Re: BUG #5867: wish: plpgsql print table for debug