Recursive call indicator/counter

From: Hadley Willan <hadley(dot)willan(at)deeper(dot)co(dot)nz>
To: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Recursive call indicator/counter
Date: 2002-11-08 02:38:13
Message-ID: 1036723093.8617.189.camel@orac.area51.deeper.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gudday' all.

In plpgsql, I've written a function that can call itself if
necessary and thus recurse down to the bottom of a tree, operate on
bottom node, then as it comes out, operate on each node, until
eventually it gets to the top again.

However, is there any system variable that I can check to see if this
function has just been called for the first time or if this is the nTH
call from itself?

Thanks.
--
Hadley Willan > Systems Development > Deeper Design Limited.
hadley(at)deeper(dot)co(dot)nz > www.deeperdesign.com > +64 (21) 28 41 463

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike D'Agosta 2002-11-08 02:48:45 Postfix and Postgres
Previous Message Neil Conway 2002-11-08 02:28:12 Re: [HACKERS] Database replication... - Mission Critica