From qinghuamail-postgresqlfans@yahoo.com Wed Aug 29 06:46:01 2007 Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 489F79F9C0B for ; Wed, 29 Aug 2007 03:46:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 20153-10 for ; Wed, 29 Aug 2007 03:45:55 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web58103.mail.re3.yahoo.com (web58103.mail.re3.yahoo.com [68.142.236.126]) by postgresql.org (Postfix) with SMTP id D089F9F9BAD for ; Wed, 29 Aug 2007 03:45:57 -0300 (ADT) Received: (qmail 66389 invoked by uid 60001); 29 Aug 2007 06:45:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=n1bj6LFhVNcFp4e9Tmddt2oMaNFa13Xei6lVyXhsUGMY57kzdpI+mt/M4+0D7i1hgHLXkqxPdx6aJiro/2vu8VgbVWzUY3Zqz7Kl/ZzqmcI003xYmcUnDx76oHGBd/jMK7mMivNjLs9mzIQWeojZulc0b1gAHoukpHIjI7DVMXc=; X-YMail-OSG: gJR6vAsVM1kpHmR_jdBrH4rqv_FeuGAe.01G90AyEBO8mMkismuh6kHineuYKLtIyhjuN7gOsEoPG.i58QnEEWZcAdxDS27zhNiD Received: from [219.142.118.227] by web58103.mail.re3.yahoo.com via HTTP; Wed, 29 Aug 2007 14:45:56 CST Date: Wed, 29 Aug 2007 14:45:56 +0800 (CST) From: Reply-To: qinghuamail-postgresqlfans@yahoo.com Subject: how to create dir using pg/plsql To: postgresql-admin MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-19260475-1188369956=:65839" Content-Transfer-Encoding: 8bit Message-ID: <715958.65839.qm@web58103.mail.re3.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.751 tagged_above=0 required=5 tests=AWL=-0.250, BAYES_60=1, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200708/381 X-Sequence-Number: 26712 --0-19260475-1188369956=:65839 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit just subject, i need to create dir using pg/plsql function,,but cannt get anything after google, please advise? thanks! --------------------------------- 雅虎邮箱,以安全著称,是值得信赖的邮箱专家! --0-19260475-1188369956=:65839 Content-Type: text/html; charset=gb2312 Content-Transfer-Encoding: 8bit just subject,

i need to create dir using pg/plsql function,,but cannt get anything after google,

please advise? thanks!



雅虎邮箱,以安全著称,是值得信赖的邮箱专家! --0-19260475-1188369956=:65839-- From depesz@depesz.com Wed Aug 29 08:27:49 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 38E0B9F9C4F for ; Wed, 29 Aug 2007 05:27:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 03198-01 for ; Wed, 29 Aug 2007 05:27:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from depesz.com (depesz.com [88.198.37.40]) by postgresql.org (Postfix) with ESMTP id 28AA19F9C4B for ; Wed, 29 Aug 2007 05:27:45 -0300 (ADT) Received: from depesz by depesz.com with local (Exim 4.63) (envelope-from ) id 1IQItq-0005PD-RZ; Wed, 29 Aug 2007 10:27:42 +0200 Date: Wed, 29 Aug 2007 10:27:42 +0200 From: hubert depesz lubaczewski To: qinghuamail-postgresqlfans@yahoo.com Cc: postgresql-admin Subject: Re: how to create dir using pg/plsql Message-ID: <20070829082742.GA19034@depesz.com> Reply-To: depesz@depesz.com References: <715958.65839.qm@web58103.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <715958.65839.qm@web58103.mail.re3.yahoo.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/385 X-Sequence-Number: 26716 On Wed, Aug 29, 2007 at 02:45:56PM +0800, qinghuamail-postgresqlfans@yahoo.com wrote: > just subject, > i need to create dir using pg/plsql function,,but cannt get anything after google, it's not possible. pl/pgsql is trusted language (like pl/perl and pl/tcl). trusted languages cannot use system-level functions. so no file, directory, socket access is possible. depesz -- quicksil1er: "postgres is excellent, but like any DB it requires a highly paid DBA. here's my CV!" :) http://www.depesz.com/ - blog dla ciebie (i moje CV) From scott.marlowe@gmail.com Wed Aug 29 15:29:31 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9564F9F999A for ; Wed, 29 Aug 2007 12:29:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 13087-04 for ; Wed, 29 Aug 2007 12:28:28 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.232]) by postgresql.org (Postfix) with ESMTP id 9B2EE9F994A for ; Wed, 29 Aug 2007 12:28:28 -0300 (ADT) Received: by nz-out-0506.google.com with SMTP id l8so162319nzf for ; Wed, 29 Aug 2007 08:28:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SCbyBqeSYcLcLRs/vq7+1ZjXZG/oF4m4FRFIAiRCssgSfsdU4WyPTTQrMOT2SihnJqCZDBJ4cXNqStSJGPU5QksxQNaLcXbXmQx4CqqykFDX4wMGk5KlkSfF2LhpJI4vIGzOv0lutPy4PnfI9pvC7uZjwEOLynvrcbj6RtHClx8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KVLsfwhiYon6mnJMuZtbC7I5h3Aegl63dka5qhg8BFgvQR9n3GsS8kO8Up3kNaUoHdA0Ws/kALqtIkLGuKWIObfcn9dcU3thiwwBETCdzonwLAYPjJWZTNQd2DysCVd+oo3EhGIftZlj5vPIGw8bnzVrAYgS+uqQ89NuEDalyto= Received: by 10.141.21.19 with SMTP id y19mr392642rvi.1188401307079; Wed, 29 Aug 2007 08:28:27 -0700 (PDT) Received: by 10.141.159.11 with HTTP; Wed, 29 Aug 2007 08:28:27 -0700 (PDT) Message-ID: Date: Wed, 29 Aug 2007 10:28:27 -0500 From: "Scott Marlowe" To: qinghuamail-postgresqlfans@yahoo.com Subject: Re: how to create dir using pg/plsql Cc: postgresql-admin In-Reply-To: <715958.65839.qm@web58103.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <715958.65839.qm@web58103.mail.re3.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/394 X-Sequence-Number: 26725 On 8/29/07, qinghuamail-postgresqlfans@yahoo.com wrote: > just subject, > > i need to create dir using pg/plsql function,,but cannt get anything after > google, As noted, not possible. BUT, you can do it in untrusted languages, like pl/perlu or pl/tclu or pl/C From montaseri@gmail.com Wed Aug 29 16:28:34 2007 Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 0C8909FA536 for ; Wed, 29 Aug 2007 13:28:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 15868-06 for ; Wed, 29 Aug 2007 13:28:26 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by postgresql.org (Postfix) with ESMTP id 8E8ED9FA1E3 for ; Wed, 29 Aug 2007 13:28:26 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c36so48710ana for ; Wed, 29 Aug 2007 09:28:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=ajKPGOqZ7CZxlWTEylAPRaTc9sol96p/Ct253LQP3VVh6qXPkxn1463WPt7J9o4HQyvFLGgaO9Ipgnceps7cQlZ0j7ulQ3gxQjHu+YwH6cvIX0fzbyvZYuGxTG+gtJ7WuMLnuLIVVR2InXW25tyHu91MHFm1vwvrdBi40IwsfTY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=HVLKC+M4pgnm/ipPmr+0ERevmM6H5RceHTKl/kYjPEbUr+Q0OAaHau6AqAtm9uvn11LsyixEz1g9XhGOhDAhyKXBwCZ2Yegj2plefoW++dGTB6ulU4Ird55G+BZ8MS3ztfyZ2Xp6sCyPL4kswUOJ0bgjzsCnkW8MWavaTOHX55I= Received: by 10.100.190.8 with SMTP id n8mr763596anf.1188404905192; Wed, 29 Aug 2007 09:28:25 -0700 (PDT) Received: by 10.65.110.15 with HTTP; Wed, 29 Aug 2007 09:28:25 -0700 (PDT) Message-ID: <8078a1730708290928t63620ae2h9cd3262edc40e0fe@mail.gmail.com> Date: Wed, 29 Aug 2007 09:28:25 -0700 From: "Medi Montaseri" To: "Scott Marlowe" Subject: Re: how to create dir using pg/plsql Cc: qinghuamail-postgresqlfans@yahoo.com, postgresql-admin In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2050_26976470.1188404905104" References: <715958.65839.qm@web58103.mail.re3.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/397 X-Sequence-Number: 26728 ------=_Part_2050_26976470.1188404905104 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I was under the impression that recent modern databases, like PG, allow you to transfer control to an out-of-system (system being the DB engine) module (shared lib, dll). That is while triggers transfer control within the system, now mechanisms exists that allow you to go outside of the system. In that context, whence the control is transferred to a C, Perl or whatever language, who is to stop that function from doing anything it wants. I appreciate a clarification. Medi On 8/29/07, Scott Marlowe wrote: > > On 8/29/07, qinghuamail-postgresqlfans@yahoo.com > wrote: > > just subject, > > > > i need to create dir using pg/plsql function,,but cannt get anything > after > > google, > > As noted, not possible. BUT, you can do it in untrusted languages, > like pl/perlu or pl/tclu or pl/C > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > ------=_Part_2050_26976470.1188404905104 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I was under the impression that recent modern databases, like PG, allow you to transfer  control to an out-of-system (system being the DB engine) module (shared lib, dll). That is while triggers transfer control within the system, now mechanisms exists that allow you to go outside of the system. In that context, whence the control is transferred to a C, Perl or whatever language, who is to stop that function from doing anything it wants.

I appreciate a clarification.

Medi

On 8/29/07, Scott Marlowe <scott.marlowe@gmail.com> wrote:
On 8/29/07, qinghuamail-postgresqlfans@yahoo.com
<qinghuamail-postgresqlfans@yahoo.com> wrote:
> just subject,
>
> i need to create dir using pg/plsql function,,but cannt get anything after
> google,

As noted, not possible.  BUT, you can do it in untrusted languages,
like pl/perlu or pl/tclu or pl/C

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

------=_Part_2050_26976470.1188404905104-- From tgl@sss.pgh.pa.us Wed Aug 29 16:48:01 2007 Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id DE1579FA550 for ; Wed, 29 Aug 2007 13:48:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 43427-10 for ; Wed, 29 Aug 2007 13:47:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 1EA329FA56E for ; Wed, 29 Aug 2007 13:47:57 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l7TGltdF005791; Wed, 29 Aug 2007 12:47:55 -0400 (EDT) To: "Medi Montaseri" cc: "Scott Marlowe" , qinghuamail-postgresqlfans@yahoo.com, postgresql-admin Subject: Re: how to create dir using pg/plsql In-reply-to: <8078a1730708290928t63620ae2h9cd3262edc40e0fe@mail.gmail.com> References: <715958.65839.qm@web58103.mail.re3.yahoo.com> <8078a1730708290928t63620ae2h9cd3262edc40e0fe@mail.gmail.com> Comments: In-reply-to "Medi Montaseri" message dated "Wed, 29 Aug 2007 09:28:25 -0700" Date: Wed, 29 Aug 2007 12:47:55 -0400 Message-ID: <5790.1188406075@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/398 X-Sequence-Number: 26729 "Medi Montaseri" writes: > I was under the impression that recent modern databases, like PG, allow you > to transfer control to an out-of-system (system being the DB engine) module > (shared lib, dll). That is while triggers transfer control within the > system, now mechanisms exists that allow you to go outside of the system. In > that context, whence the control is transferred to a C, Perl or whatever > language, who is to stop that function from doing anything it wants. Well, sure. Postgres calls those untrusted languages, and only lets database superusers use them. regards, tom lane From montaseri@gmail.com Wed Aug 29 20:50:14 2007 Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id D4A989FA551 for ; Wed, 29 Aug 2007 17:50:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 09731-02 for ; Wed, 29 Aug 2007 17:50:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by postgresql.org (Postfix) with ESMTP id 0AA8A9F9D2F for ; Wed, 29 Aug 2007 17:50:06 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id u77so2730874pyb for ; Wed, 29 Aug 2007 13:50:05 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=JhKTtpjIKVjl7HX0dhSrjm5mr+u2LOrqX8w7dQ/Erafk9hc5H3toteWQPbdzbmTNpbHVrn008BXWBT1SMtwXIbqBSPiLDr4dZC1f1S5xhD4n8OFTCKg1mCn2njCYE8t2L5GrD4vJz/M6qhL1hCeRnMneYEnOBSlWdR5sC92LbdU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=qBM76aG7U0RDosVNG0x/iOx2Z1Uctc8Jh2BwhvUOtYZm3FapYOLGvNnzdP2eOy6CEBnyWY+xolF/SPBqynZuVa60m/0ogiIfqPjeVCeSlF7cHOaNFGYe2wnle+rAs/qP9rtsAJcnGkEjB8Z0qVUQkKcs4nzQbY7XZzBdV3GsP1w= Received: by 10.65.214.19 with SMTP id r19mr2292073qbq.1188420604865; Wed, 29 Aug 2007 13:50:04 -0700 (PDT) Received: by 10.65.110.15 with HTTP; Wed, 29 Aug 2007 13:50:04 -0700 (PDT) Message-ID: <8078a1730708291350t8eb7f2fh352ef94959a45647@mail.gmail.com> Date: Wed, 29 Aug 2007 13:50:04 -0700 From: "Medi Montaseri" To: "Tom Lane" Subject: Re: how to create dir using pg/plsql Cc: "Scott Marlowe" , qinghuamail-postgresqlfans@yahoo.com, postgresql-admin In-Reply-To: <5790.1188406075@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3013_31499577.1188420604819" References: <715958.65839.qm@web58103.mail.re3.yahoo.com> <8078a1730708290928t63620ae2h9cd3262edc40e0fe@mail.gmail.com> <5790.1188406075@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/405 X-Sequence-Number: 26736 ------=_Part_3013_31499577.1188420604819 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I see...thank you for the clarification...one more question... How does PG protects itself from a run-away code (eg an endless loop) ? In other words, does PG run the "untrusted" code in a seperate process? Thanks Medi On 8/29/07, Tom Lane wrote: > > "Medi Montaseri" writes: > > I was under the impression that recent modern databases, like PG, allow > you > > to transfer control to an out-of-system (system being the DB engine) > module > > (shared lib, dll). That is while triggers transfer control within the > > system, now mechanisms exists that allow you to go outside of the > system. In > > that context, whence the control is transferred to a C, Perl or whatever > > language, who is to stop that function from doing anything it wants. > > Well, sure. Postgres calls those untrusted languages, and only lets > database superusers use them. > > regards, tom lane > ------=_Part_3013_31499577.1188420604819 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I see...thank you for the clarification...one more question...
How does PG protects itself from a run-away code (eg an endless loop) ? In other words, does PG run the "untrusted" code in a seperate process?

Thanks
Medi

On 8/29/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"Medi Montaseri" <montaseri@gmail.com> writes:
> I was under the impression that recent modern databases, like PG, allow you
> to transfer  control to an out-of-system (system being the DB engine) module
> (shared lib, dll). That is while triggers transfer control within the
> system, now mechanisms exists that allow you to go outside of the system. In
> that context, whence the control is transferred to a C, Perl or whatever
> language, who is to stop that function from doing anything it wants.

Well, sure.  Postgres calls those untrusted languages, and only lets
database superusers use them.

                        regards, tom lane

------=_Part_3013_31499577.1188420604819-- From alvherre@commandprompt.com Wed Aug 29 21:55:17 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 0F7E29F950E for ; Wed, 29 Aug 2007 18:55:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 21937-02-2 for ; Wed, 29 Aug 2007 18:55:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id A0FE29F9477 for ; Wed, 29 Aug 2007 18:54:42 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-220-104-109.bk9-dsl.surnet.cl [201.220.104.109]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l7TLsgEw027396; Wed, 29 Aug 2007 14:54:43 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id EC18047C5F; Wed, 29 Aug 2007 17:54:40 -0400 (CLT) Date: Wed, 29 Aug 2007 17:54:40 -0400 From: Alvaro Herrera To: Medi Montaseri Cc: Tom Lane , Scott Marlowe , qinghuamail-postgresqlfans@yahoo.com, postgresql-admin Subject: Re: how to create dir using pg/plsql Message-ID: <20070829215440.GV7911@alvh.no-ip.org> References: <715958.65839.qm@web58103.mail.re3.yahoo.com> <8078a1730708290928t63620ae2h9cd3262edc40e0fe@mail.gmail.com> <5790.1188406075@sss.pgh.pa.us> <8078a1730708291350t8eb7f2fh352ef94959a45647@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8078a1730708291350t8eb7f2fh352ef94959a45647@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV 0.91.1/4089/Tue Aug 28 13:45:06 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 29 Aug 2007 14:54:43 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/406 X-Sequence-Number: 26737 Medi Montaseri escribi�: > I see...thank you for the clarification...one more question... > How does PG protects itself from a run-away code (eg an endless loop) ? It doesn't. > In other words, does PG run the "untrusted" code in a seperate > process? No. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support