<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Wishlist of PL/Perl Enhancements for PostgreSQL 8.5</title>
	<atom:link href="http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/</link>
	<description>Listen. Reflect. Explore. Solve.</description>
	<lastBuildDate>Tue, 02 Mar 2010 15:29:41 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: TimBunce</title>
		<link>http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/#comment-1303</link>
		<dc:creator>TimBunce</dc:creator>
		<pubDate>Wed, 07 Oct 2009 22:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://timbunce.wordpress.com/?p=344#comment-1303</guid>
		<description>I see your point. What&#039;s needed is some equivalent of a &quot;use&quot; statement that can be put at the start of plperl functions. I have a few ideas - I&#039;ll give it some thought. Thanks.</description>
		<content:encoded><![CDATA[<p>I see your point. What&#8217;s needed is some equivalent of a &#8220;use&#8221; statement that can be put at the start of plperl functions. I have a few ideas &#8211; I&#8217;ll give it some thought. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Eisentraut</title>
		<link>http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/#comment-1302</link>
		<dc:creator>Peter Eisentraut</dc:creator>
		<pubDate>Wed, 07 Oct 2009 12:24:21 +0000</pubDate>
		<guid isPermaLink="false">http://timbunce.wordpress.com/?p=344#comment-1302</guid>
		<description>Item 1 could be controversial.  It&#039;s undoubtedly useful, but it creates an action at a distance that effectively invites users to create mutually incompatible PL/Perl installation.  Ideally, you would want users to create libraries of reusable PL/Perl functions, but when those only work with certain at_init_do settings, then you create a big mess.  Look at PHP; they have done something quite similar with their php.ini.</description>
		<content:encoded><![CDATA[<p>Item 1 could be controversial.  It&#8217;s undoubtedly useful, but it creates an action at a distance that effectively invites users to create mutually incompatible PL/Perl installation.  Ideally, you would want users to create libraries of reusable PL/Perl functions, but when those only work with certain at_init_do settings, then you create a big mess.  Look at PHP; they have done something quite similar with their php.ini.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimBunce</title>
		<link>http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/#comment-1298</link>
		<dc:creator>TimBunce</dc:creator>
		<pubDate>Tue, 06 Oct 2009 20:40:49 +0000</pubDate>
		<guid isPermaLink="false">http://timbunce.wordpress.com/?p=344#comment-1298</guid>
		<description>Suggested change: rename plperl.at_init_do to plperl.at_perl_init_do and add plperl.at_safe_init_do which would be similar but specify code to run when the Safe compartment is initialized. It could thus be set by per-user/per-role GUC.</description>
		<content:encoded><![CDATA[<p>Suggested change: rename plperl.at_init_do to plperl.at_perl_init_do and add plperl.at_safe_init_do which would be similar but specify code to run when the Safe compartment is initialized. It could thus be set by per-user/per-role GUC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimBunce</title>
		<link>http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/#comment-1296</link>
		<dc:creator>TimBunce</dc:creator>
		<pubDate>Tue, 06 Oct 2009 20:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://timbunce.wordpress.com/?p=344#comment-1296</guid>
		<description>It&#039;s not fixed in 5.10.1. I&#039;ve asked for an update on the status. Meanwhile I&#039;ve added a comment on the ticket with a simple workaround that would be effective for plperl and that I&#039;ll include in my changes.</description>
		<content:encoded><![CDATA[<p>It&#8217;s not fixed in 5.10.1. I&#8217;ve asked for an update on the status. Meanwhile I&#8217;ve added a comment on the ticket with a simple workaround that would be effective for plperl and that I&#8217;ll include in my changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew G.</title>
		<link>http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/#comment-1293</link>
		<dc:creator>Andrew G.</dc:creator>
		<pubDate>Tue, 06 Oct 2009 12:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://timbunce.wordpress.com/?p=344#comment-1293</guid>
		<description>Points 1-3 are primarily attempts to work around the lack of features that should have been in Safe.pm in the first place.

For comparison, in TCL if you create a safe interpreter using ::safe::interpCreate, then the safe interpreter can load modules etc. in the normal way, subject to (a) the specified mapping between host filenames and the virtual filenames seen inside the safe interpreter, and (b) the fact that the loaded modules are still running inside the safe interpreter and have no more access than it does.

A proper system of external interfaces for Safe would obviate the need for many of the features you are requesting.

Incidentally, is the sort{} + threads + Safe bug (#60374) fixed yet? (and if it is, why is it still open?)</description>
		<content:encoded><![CDATA[<p>Points 1-3 are primarily attempts to work around the lack of features that should have been in Safe.pm in the first place.</p>
<p>For comparison, in TCL if you create a safe interpreter using ::safe::interpCreate, then the safe interpreter can load modules etc. in the normal way, subject to (a) the specified mapping between host filenames and the virtual filenames seen inside the safe interpreter, and (b) the fact that the loaded modules are still running inside the safe interpreter and have no more access than it does.</p>
<p>A proper system of external interfaces for Safe would obviate the need for many of the features you are requesting.</p>
<p>Incidentally, is the sort{} + threads + Safe bug (#60374) fixed yet? (and if it is, why is it still open?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimBunce</title>
		<link>http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/#comment-1291</link>
		<dc:creator>TimBunce</dc:creator>
		<pubDate>Tue, 06 Oct 2009 08:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://timbunce.wordpress.com/?p=344#comment-1291</guid>
		<description>Thank you, yes, I mean at the end of the process. I&#039;m not sure what you mean by &quot;Most of the rest of your points would be better addressed at the perl level&quot;.</description>
		<content:encoded><![CDATA[<p>Thank you, yes, I mean at the end of the process. I&#8217;m not sure what you mean by &#8220;Most of the rest of your points would be better addressed at the perl level&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zbigniew Lukasiak</title>
		<link>http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/#comment-1290</link>
		<dc:creator>Zbigniew Lukasiak</dc:creator>
		<pubDate>Tue, 06 Oct 2009 08:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://timbunce.wordpress.com/?p=344#comment-1290</guid>
		<description>I don&#039;t have anything smart to write here - but I wanted to express my support, especially for the point 1 above. It was a long time ago that I learned about PL/Perl and I was initially thrilled about the possibilities - but after I learned about the constraints for loading modules I realized that it&#039;s application is very limited.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t have anything smart to write here &#8211; but I wanted to express my support, especially for the point 1 above. It was a long time ago that I learned about PL/Perl and I was initially thrilled about the possibilities &#8211; but after I learned about the constraints for loading modules I realized that it&#8217;s application is very limited.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew G.</title>
		<link>http://blog.timbunce.org/2009/10/05/wishlist-of-plperl-enhancements-for-postgresql-8-5/#comment-1288</link>
		<dc:creator>Andrew G.</dc:creator>
		<pubDate>Tue, 06 Oct 2009 04:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://timbunce.wordpress.com/?p=344#comment-1288</guid>
		<description>&lt;blockquote&gt;
Currently PostgreSQL doesn’t execute END blocks at server shutdown 
&lt;/blockquote&gt;

You do realize that this would be impossible, right? That interpreters are created &lt;i&gt;per-connection&lt;/i&gt; and no interpreter state can be preserved past the end of the session (each session is a separate process)?

Most of the rest of your points would be better addresses at the perl level (Safe is a joke compared to, for example, TCL&#039;s safe interpreters).</description>
		<content:encoded><![CDATA[<blockquote><p>
Currently PostgreSQL doesn’t execute END blocks at server shutdown
</p></blockquote>
<p>You do realize that this would be impossible, right? That interpreters are created <i>per-connection</i> and no interpreter state can be preserved past the end of the session (each session is a separate process)?</p>
<p>Most of the rest of your points would be better addresses at the perl level (Safe is a joke compared to, for example, TCL&#8217;s safe interpreters).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
