Re: stored function (possible to access file system or call java program)?

From: Chris Travers <chris(dot)travers(at)gmail(dot)com>
To: "J(dot)V(dot)" <jvsrvcs(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: stored function (possible to access file system or call java program)?
Date: 2011-10-03 21:08:15
Message-ID: CAKt_ZfvutRLGzKgM94kGROHsLA57gCdnd3KDUST8VDrB8Fm7Ng@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Oct 3, 2011 at 2:05 PM, J.V. <jvsrvcs(at)gmail(dot)com> wrote:
> Is it possible within a stored function to:
>    1) Access the file system (to rename a file for example)
>    2) Call a java program
>
For both of these:
1) yes, if you use an untrusted program and
2) These are dangerous because they are operations that exist outside
the transactional control of the RDBMS, so it's usually better to look
to other ways of doing this, like NOTIFY and LISTEN.....

Best Wishes,
Chris Travers

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2011-10-03 21:12:35 Re: stored function (possible to access file system or call java program)?
Previous Message J.V. 2011-10-03 21:05:40 stored function (possible to access file system or call java program)?