Re: [SQL] URL activation through trigger

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: "Sandeep Gaikwad" <sgaikwad(at)vertex(dot)co(dot)in>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] URL activation through trigger
Date: 2005-01-27 15:07:26
Message-ID: 2798FB2A-7075-11D9-8FBF-000D933565E8@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Sandeep,

Using pl/perl at least, you could probably do this. My guess is that
pl/python (and perhaps pl/R) would offer similar functionality. At
least for pl/perl, I think you would need to use the untrusted version
and use a module like LWP. I haven't tried this, but I think it should
be possible (and fairly easy to do). Perhaps others can add some more
detail.

Sean

On Jan 27, 2005, at 9:38 AM, Sandeep Gaikwad wrote:

> Hi,
> I am using Postgres 7.3.4. I want to write a trigger for
> insert, update, delete operation on say, user table. This trigger will
> activate an URL. URL will be as:
> http://sandeep/Trigger?userid=4&name=sandeep where, userid and
> password will be parameters to send. They may taken from database say,
> user table. Is this possible ? How can I do that ?
>
> Thanks & Regards,
> Sandeep
>
> ---------------------------------------------------------
>
> Disclaimer:
>
> The contents of this message are confidential and intended to the
> addressee at the specified e-mail address only. Its contents may not
> be copied or disclosed to anyone other than the intended recipient. If
> this e-mail is received in error, please contact Vertex Software Pvt.
> Ltd immediately on +91 20 4041500 with details of the sender and
> addressee and delete the e-mail. Vertex Software Pvt. Ltd accepts no
> responsibility in the event that the onward transmission, opening or
> use of this message and/or any attachments adversely affects the
> recipient's systems or data. It is the recipient's responsibility to
> carry out such virus and other checks as the recipient considers
> appropriate.
>
> ---------------------------------------------------------
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to
> majordomo(at)postgresql(dot)org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Frank D. Engel, Jr. 2005-01-27 15:19:42 Re: Extended unit
Previous Message David Beavan 2005-01-27 15:03:03 Re: tsearch2 document and word limit

Browse pgsql-sql by date

  From Date Subject
Next Message cpp 2005-01-27 15:46:25 Need SELECT rights to UPDATE/DELETE WHERE?
Previous Message Tom Lane 2005-01-27 15:06:32 Re: Complete instruction in a trigger