Re: Excute comnands OS from plpgsql

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Edwin Quijada" <listas_quijada(at)hotmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Excute comnands OS from plpgsql
Date: 2003-10-14 16:15:36
Message-ID: 200310141715.36627.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday 14 October 2003 16:38, Edwin Quijada wrote:
> Hi!! Is there a way to execute script in OS from plpgsql???

I think there's a pl/sh procedural language (in contrib or gborg iirc), but
you could probably use any of the untrusted procedural languages.

Better, would be to use the LISTEN/NOTIFY feature to talk to an external
daemon that handles things for you, otherwise your script will run as the
same user as the backend.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Arthur Ward 2003-10-14 16:43:59 Re: SET within a function?
Previous Message Richard Huxton 2003-10-14 16:13:46 Re: elog undefined?