Re: PL/Perl questions...

From: David Fetter <david(at)fetter(dot)org>
To: LLC <kevin(at)kevinkempterllc(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/Perl questions...
Date: 2006-06-16 18:52:50
Message-ID: 20060616185250.GF23760@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jun 16, 2006 at 11:42:51AM -0500, LLC wrote:
> Hi List;
>
> I have 2 questions...
>
> 1) I want to create a perl function which connects to an external
> non-Postgres database and retrieves data. I wonder is the best way
> to do this to return a set or an array? I assume returning a data
> set is a better way to go, I want to be able to run something like
> this:
>
> "select a,b,c from my_new_perl_func('odbc-conn', 'sql-string') as t1(a,b,c)";

DBI-Link does something a lot like this.
http://pgfoundry.org/projects/dbi-link/

> 2) can anyone provide me with an example of how to return data from
> a perl function in this manner based on a DBI query?

See above :)

Cheers,
D
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
phone: +1 415 235 3778 AIM: dfetter666
Skype: davidfetter

Remember to vote!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Benjamin Arai 2006-06-16 18:55:38 Re: Question about clustering multiple columns
Previous Message LLC 2006-06-16 18:49:44 (no subject)