Re: PL/Perl Question

From: Doug McNaught <doug(at)wireboard(dot)com>
To: Hitesh Patel <hitesh(at)presys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/Perl Question
Date: 2001-04-20 11:22:53
Message-ID: m31yqnzugi.fsf@belphigor.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hitesh Patel <hitesh(at)presys(dot)com> writes:

> I need to be able to execute SQL commands from inside a plperl
> function and can't figure if I can do this. Also.. after executing
> the query I need to be able to grab the number of tuples returned
> and there values.. how would I go about doing this.. any help would
> be appreciated.

As I understand it, PL/Perl doesn't currently have an interface to the
server backend, so all you can really do with it is string and number
manipulation. You'll have to use Tcl or PL/PGSQL for your functions.

-Doug
--
The rain man gave me two cures; he said jump right in,
The first was Texas medicine--the second was just railroad gin,
And like a fool I mixed them, and it strangled up my mind,
Now people just get uglier, and I got no sense of time... --Dylan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Peltonen 2001-04-20 11:52:22 Re: 7.1 RPM has old JDBC driver - SQL statement too long
Previous Message Nils Zonneveld 2001-04-20 11:21:54 PostgreSQL ODBC driver for Mac OS