Re: Recursion and SPI - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Recursion and SPI
Date
Msg-id 15140.978735834@sss.pgh.pa.us
Whole thread Raw
In response to Recursion and SPI  (Ian Lance Taylor <ian@airs.com>)
List pgsql-hackers
Ian Lance Taylor <ian@airs.com> writes:
> Does the SPI interface support recursion?  That is, can a function
> use SPI to make a query which involves calling another function which
> uses SPI?

Looks to me like it should work.

> The documentation suggests not, saying that if a function which uses
> SPI calls another function which uses SPI, it won't work, and calling
> that ``bad practice.''

The documentation could be out of date.  Why don't you test it out and
let us know?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Beta2 ... ?
Next
From: "mike"
Date:
Subject: Re: Beta2 ... ?