Re: Can MySQL start/fire an external process?
- From: Bill Karwin <bill@xxxxxxxxxx>
- Date: Wed, 10 Aug 2005 10:48:29 -0700
Mark Matthews wrote:
You can do pretty much anything you want in a UDF (make a socket call, run some Java code using jUDF, exec() an external process, etc), which you can call from a trigger:
I would not recommend doing anything in a UDF that could execute in unbounded time, perform I/O, access other libraries, etc.
Doing so can result in:
- security vulnerabilities, because the UDF runs as the user id of the DBMS server
- DBMS server hanging if your UDF takes a long time to return
- DBMS server crashing if your UDF has a bug, or fails to handle exception cases
UDFs are intended for very short-duration context-free operations, taking input parameters and giving output based solely on that input.
I would not recommend designing a UDF to read or write any state outside the scope of the UDF.
Regards, Bill K. .
- Follow-Ups:
- Re: Can MySQL start/fire an external process?
- From: Mark Matthews
- Re: Can MySQL start/fire an external process?
- References:
- Can MySQL start/fire an external process?
- From: johnfofawn
- Re: Can MySQL start/fire an external process?
- From: J. David Boyd
- Re: Can MySQL start/fire an external process?
- From: johnfofawn
- Re: Can MySQL start/fire an external process?
- From: J. David Boyd
- Re: Can MySQL start/fire an external process?
- From: Mark Matthews
- Can MySQL start/fire an external process?
- Prev by Date: Re: Can MySQL start/fire an external process?
- Next by Date: Re: Can MySQL start/fire an external process?
- Previous by thread: Re: Can MySQL start/fire an external process?
- Next by thread: Re: Can MySQL start/fire an external process?
- Index(es):
Relevant Pages
|