Re: Shared Objects (Dynamic loading)

From: "Jasbinder Bali" <jsbali(at)gmail(dot)com>
To: "Michael Fuhr" <mike(at)fuhr(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Shared Objects (Dynamic loading)
Date: 2006-08-27 21:13:25
Message-ID: a47902760608271413j1ec702aeq1f478b3a8489021a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

Hi,
Can you please give me pointers to how to establish clinet server model
using PL/Perl.
I mean how do i give the ip address of the database server in my Perl script
running in another machine.
Regards,
Jas

On 8/26/06, Michael Fuhr <mike(at)fuhr(dot)org> wrote:
>
> On Sat, Aug 26, 2006 at 03:32:37PM -0400, Jasbinder Bali wrote:
> > Do we have any concept of shared objects in perl.
> > Just wondering, how do we dynamically load something written in perl in
> > postgresql.
>
> A PL/Perl function can load external code with "use", "require",
> or "do". Since those are potentially dangerous operations you'll
> need to create the function with plperlu, which means you'll need
> to create the function as a database superuser. See "Trusted and
> Untrusted PL/Perl" in the documentation for more information.
>
> http://www.postgresql.org/docs/8.1/interactive/plperl-trusted.html
>
> Regarding "use", "require", and "do" see the Perl documentation,
> in particular the perlfunc and perlmod manual pages.
>
> --
> Michael Fuhr
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2006-08-27 21:44:01 Re: Shared Objects (Dynamic loading)
Previous Message Dave Page 2006-08-27 20:05:14 Re: Cutting the Gborg throat

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Fuhr 2006-08-27 21:44:01 Re: Shared Objects (Dynamic loading)
Previous Message Michael Fuhr 2006-08-27 20:14:58 Re: PostgreSQL unexpectedlly closes the connection