From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
---|---|
To: | bobspero <bobspero(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: SNMP Collection with PostgreSQL Stored Proc, what lang? |
Date: | 2014-02-01 21:10:53 |
Message-ID: | 52ED62DD.7030204@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 02/01/2014 12:59 PM, bobspero wrote:
> I have a postgresql dB where I want to SNMP some information from a few
> servers and store them in my database. Is this something that can be done
> with a stored procedure or do I have to build an external utility type of
> app? If it is doable is this something the postgeres language or do I have
> to do something like python or java?
In Postgres procedural languages are found in two flavors trusted and
untrusted. Untrusted can reach out from the database into the file
system and do things. This would be what you want if you want to work
from a function in the database. plpythonu is untrusted and there is an
untrusted version of plperl, there may be others. plpgsql is trusted
and would not work for what you have in mind. The other option, is as
you say build a middleware application that feeds into the database.
>
>
>
> --
> View this message in context: http://postgresql.1045698.n5.nabble.com/SNMP-Collection-with-PostgreSQL-Stored-Proc-what-lang-tp5790117.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Edson Richter | 2014-02-01 23:18:25 | Transparent exchange BDE from Oracle to PostgreSQL |
Previous Message | bobspero | 2014-02-01 20:59:39 | SNMP Collection with PostgreSQL Stored Proc, what lang? |