Recursive call indicator/counter - Mailing list pgsql-general

From Hadley Willan
Subject Recursive call indicator/counter
Date
Msg-id 1036723093.8617.189.camel@orac.area51.deeper.co.nz
Whole thread Raw
Responses Re: Recursive call indicator/counter  (elein <elein@sbcglobal.net>)
List 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@deeper.co.nz > www.deeperdesign.com > +64 (21) 28 41 463



pgsql-general by date:

Previous
From: Neil Conway
Date:
Subject: Re: [HACKERS] Database replication... - Mission Critica
Next
From: Jeff Davis
Date:
Subject: Re: postgres/perl problem in 7.3b5