From: | Mike Mascari <mascarm(at)mascari(dot)com> |
---|---|
To: | Alam Surya <alam_it(at)csahome(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: access linux command from SQL Query |
Date: | 2003-11-05 06:20:22 |
Message-ID: | 3FA896A6.7040805@mascari.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Alam Surya wrote:
> hello all......
>
> I have a litle question, do i have acces linux command from postgresql
> query like send message to others linux user in LAN ? any feature for that ?
You could use a system() call in a C function, or you could use Peter
Eisentraut's pl/sh language:
http://webmail.postgresql.org/~petere/plsh.html
Of course, if you use trigger functions to send email messages you
lose transactional integrity with respect to the underlying data vs.
the email message in the face of a transaction abort. Therefore some
people do this in middleware after the transaction associated with the
email message has been committed.
Hope that helps,
Mike Mascari
mascarm(at)mascari(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Jaime Casanova | 2003-11-05 07:46:09 | Re: Database design question: ugliness or referential integrity? |
Previous Message | Bruno Wolff III | 2003-11-05 06:06:25 | Re: Changes in Rel. 7.4 |