Re: recursive text construction in plpgsql?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Frank Miles <fpm(at)u(dot)washington(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: recursive text construction in plpgsql?
Date: 2001-09-08 02:46:33
Message-ID: 19190.999917193@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I said:
> Frank Miles <fpm(at)u(dot)washington(dot)edu> writes:
>> The simple recursive function:
>> [ doesn't work ]

> Looks like you have found a real bug, but I don't know what it is yet...

Now I do :-(. FunctionCache needs to be a read-only data structure;
it can't contain the argument block that's built for an individual call,
because the same expression tree might be invoked recursively while
filling in the arguments for a function. I'm surprised no one has
noticed this before.

I'll fix it for 7.2...

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message cnliou 2001-09-08 03:48:49 Temp Table In SQL Function
Previous Message David Ford 2001-09-08 02:36:18 Re: Problem w/ dumping huge table and no disk space