Re: SPI_ERROR_CONNECT in plperl function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christian Schröder <cs(at)deriva(dot)de>
Cc: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: SPI_ERROR_CONNECT in plperl function
Date: 2009-01-04 23:28:14
Message-ID: 1168.1231111694@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?ISO-8859-1?Q?Christian_Schr=F6der?= <cs(at)deriva(dot)de> writes:
> When I try to call the function I get the following error message:

> test=# select * from testfunc();
> ERROR: error from Perl function: SPI_connect failed: SPI_ERROR_CONNECT
> at line 2.

Hmph ... looks like plperl is shy a few SPI_push/SPI_pop calls.
We fixed this issue in plpgsql awhile back, but nobody thought to
look at the other PLs :-(

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rikard Pavelic 2009-01-05 00:02:51 waiting on index drop
Previous Message Gregory Stark 2009-01-04 20:47:30 Re: What determines the cost of an index scan?