<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Postgres OnLine Journal - plcoffee</title>
    <link>http://www.postgresonline.com/journal/</link>
    <description>an In depth look at the PostgreSQL open source database</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4.1 - http://www.s9y.org/</generator>
    <pubDate>Sun, 16 Jun 2013 15:13:10 GMT</pubDate>

    <image>
        <url>http://www.postgresonline.com/journal/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Postgres OnLine Journal - plcoffee - an In depth look at the PostgreSQL open source database</title>
        <link>http://www.postgresonline.com/journal/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>PostgreSQL 9.3 extension treats for windows users: plV8</title>
    <link>http://www.postgresonline.com/journal/archives/305-PostgreSQL-9.3-extension-treats-for-windows-users-plV8.html</link>
            <category>9.3</category>
            <category>pl programming</category>
            <category>plcoffee</category>
            <category>plLiveScript</category>
            <category>plv8js</category>
            <category>postgresql versions</category>
            <category>winextensions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/305-PostgreSQL-9.3-extension-treats-for-windows-users-plV8.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=305</wfw:comment>

    <slash:comments>8</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=305</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;Now that PostgreSQL 9.3 beta1 has been released we&#039;ve started to jump start our experimentation by compiling our favorite extensions.  First on the list is PL/V8 js.&lt;/p&gt;

&lt;p&gt;This was compiled against 9.3beta1 for 64-bit and 32-bit and  plv8 version 1.4.0.  We briefly tried with the EDB windows builds which we downloaded from: &lt;a href=&quot;http://www.enterprisedb.com/products-services-training/pgbindownload&quot; target=&quot;_blank&quot;&gt;http://www.enterprisedb.com/products-services-training/pgbindownload&lt;/a&gt; and seems to work fine.&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://www.postgresonline.com/downloads/pg93plv8jsbin_w32.zip&quot; target=&quot;_blank&quot;&gt;PostgreSQL 9.3 plv8 32-bit download&lt;/a&gt;&lt;/li&gt; 
&lt;li&gt;&lt;a href=&quot;http://www.postgresonline.com/downloads/pg93plv8jsbin_w64.zip&quot; target=&quot;_blank&quot;&gt;PostgreSQL 9.3 plv8 64-bit download&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We hope windows users find these useful.&lt;/p&gt;

 
    </content:encoded>

    <pubDate>Mon, 13 May 2013 15:09:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/305-guid.html</guid>
    <category>plcoffee</category>
<category>pljavascript</category>
<category>pllivescript</category>
<category>plv8</category>
<category>postgresql 9.3</category>

</item>
<item>
    <title>PLV8 1.3 windows binaries for PostgreSQL 9.2</title>
    <link>http://www.postgresonline.com/journal/archives/280-PLV8-1.3-windows-binaries-for-PostgreSQL-9.2.html</link>
            <category>9.2</category>
            <category>pl programming</category>
            <category>plcoffee</category>
            <category>plLiveScript</category>
            <category>plv8js</category>
            <category>postgresql versions</category>
            <category>winextensions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/280-PLV8-1.3-windows-binaries-for-PostgreSQL-9.2.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=280</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=280</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;As Hitoshi Hirada mentioned already in &lt;a href=&quot;http://umitanuki.hatenablog.com/entry/2012/12/10/145425&quot; target=&quot;_blank&quot;&gt;PL/v8 is now the richest procedural language&lt;/a&gt; , PL/V8 1.3 has been recently released and some of the great new features are automatic conversion of json objects, and ability to write window functions.  Not only does PL/V8 allow you to make the most of the native JSON support in PostgreSQL 9.2, but in many cases particularly numeric processing, the speed is much better than what you get with plpgsql.  Someone asked us a while back about this and we are hoping to do a demonstration of pl/v8 for numeric processing where you can see the marked difference in speed and perhaps compare with something like PL/R that is also often used for array numeric processing.&lt;/p&gt;


&lt;p&gt;For those who are on windows we&#039;ve compiled PLv8 1.3  for windows 32-bit and windows 64-bit that work with PostgreSQL EDB installs. We haven&#039;t had a chance to thoroughly test them yet,  so let us know if you find issues.  We&#039;ve saved the last versions we compiled under a different name since some things are not backward compatible between the PLv8 1.1 and 1.3 releases.&lt;/p&gt;

&lt;p&gt;We are also hoping to making our windows binary download links more visible.  For stop gap fix, we are tagging all the articles concerning things like FDW extensions, PostGIS, plv8 we&#039;ve compiled for windows under winextensions and accessible from &lt;a href=&quot;http://www.postgresonline.com/winextensions.php&quot; target=&quot;blank&quot;&gt;http://www.postgresonline.com/winextensions.php&lt;/a&gt;&lt;/p&gt;

 &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/280-PLV8-1.3-windows-binaries-for-PostgreSQL-9.2.html#extended&quot;&gt;Continue reading &quot;PLV8 1.3 windows binaries for PostgreSQL 9.2&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 13 Dec 2012 22:32:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/280-guid.html</guid>
    
</item>
<item>
    <title>Windows Binaries and Installers Up for PostgreSQL 9.2: PLV8 and PostGIS 2.0.1</title>
    <link>http://www.postgresonline.com/journal/archives/271-Windows-Binaries-and-Installers-Up-for-PostgreSQL-9.2-PLV8-and-PostGIS-2.0.1.html</link>
            <category>9.2</category>
            <category>pl programming</category>
            <category>plcoffee</category>
            <category>plv8js</category>
            <category>postgis</category>
            <category>postgresql versions</category>
            <category>winextensions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/271-Windows-Binaries-and-Installers-Up-for-PostgreSQL-9.2-PLV8-and-PostGIS-2.0.1.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=271</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=271</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;We&#039;ve recompiled our &lt;a href=&quot;http://www.postgresonline.com/journal/archives/261-Building-PLV8JS-and-PLCoffee-for-Windows-using-MingW64-w64-w32.html&quot; target=&quot;_blank&quot;&gt;PL/V8 for windows&lt;/a&gt; against PostgreSQL 9.2.0 (both &lt;b style=&#039;font-size:20pt&#039;&gt;&lt;a href=&quot;http://www.postgresonline.com/downloads/pg92plv8jsbin_w32.zip&quot; target=&quot;_blank&quot;&gt;32-bit&lt;/a&gt;&lt;/b&gt; and &lt;b style=&#039;font-size:20pt&#039;&gt;&lt;a href=&quot;http://www.postgresonline.com/downloads/pg92plv8jsbin_w64.zip&quot; target=&quot;_blank&quot;&gt;64-bit&lt;/a&gt;&lt;/b&gt;) with latest PL/V8 code.  This includes the additional &lt;a href=&quot;http://gkz.github.com/LiveScript/&quot; target=&quot;_blank&quot;&gt;LiveScript language&lt;/a&gt;, which you can use by doing: &lt;/p&gt;
&lt;code&gt;CREATE EXTENSION plls;&lt;/code&gt;

&lt;p&gt;New release also includes some bug fixes such as &lt;a href=&quot;http://code.google.com/p/plv8js/source/detail?r=bbfae3f019ff5f270239b9cdd19eecdfba4926b3&quot; target=&quot;_blank&quot;&gt;Crash case with non-array in array returning function.&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;We have also put up &lt;b style=&#039;font-size:20pt&#039;&gt;&lt;a href=&quot;http://www.postgis.org/download/windows/#windbinaries&quot; target=&quot;_blank&quot;&gt;binaries&lt;/a&gt;&lt;/b&gt; and &lt;b style=&#039;font-size:20pt&#039;&gt;&lt;a href=&quot;http://www.postgis.org/download/windows/#postgis-installers&quot; target=&quot;_blank&quot;&gt;installers&lt;/a&gt;&lt;/b&gt; for PostGIS 2.0.1 for PostgreSQL 9.2 (32-bit and 64-bit) downloadable from PostGIS website.  We haven&#039;t deployed the installers to Application StackBuilder yet since we are doing some testing before we release to the masses.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sat, 22 Sep 2012 16:24:01 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/271-guid.html</guid>
    <category>plcoffee</category>
<category>pljavascript</category>
<category>pllivescript</category>
<category>plv8</category>

</item>
<item>
    <title>PLV8JS and PLCoffee Part 2: JSON search requests</title>
    <link>http://www.postgresonline.com/journal/archives/263-PLV8JS-and-PLCoffee-Part-2-JSON-search-requests.html</link>
            <category>intermediate</category>
            <category>pl programming</category>
            <category>plcoffee</category>
            <category>plv8js</category>
    
    <comments>http://www.postgresonline.com/journal/archives/263-PLV8JS-and-PLCoffee-Part-2-JSON-search-requests.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=263</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=263</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;PostgreSQL 9.2 beta3 got released this week and so we inch ever closer to final in another 2 months or so. One of the great
new features is the built-in JSON type and companion PLV8/PLCoffee languages that allow for easy processing of JSON objects.
One of the use cases we had in mind is to take as input a JSON search request that in turn returns a JSON dataset. &lt;/p&gt;
&lt;p&gt;We&#039;ll use our table from &lt;a href=&quot;http://www.postgresonline.com/journal/archives/262-PLV8JS-and-PLCoffee-Part-1-Upserting.html&quot;&gt;PLV8 and PLCoffee Upserting&lt;/a&gt;.
Keep in mind that in practice the json search request would be generated by a client side javascript API such as our favorite &lt;a href=&quot;http://jquery.org/&quot; target=&quot;_blank&quot;&gt;JQuery&lt;/a&gt;, but for quick prototyping, we&#039;ll generate the request in the database with some SQL.&lt;/p&gt;
&lt;p&gt;If you are on windows and don&#039;t have plv8 available we have &lt;a href=&quot;http://www.postgresonline.com/journal/archives/261-Building-PLV8JS-and-PLCoffee-for-Windows-using-MingW64-w64-w32.html&quot; target=&quot;_blank&quot;&gt;PostgreSQL 9.2 64-bit and 32-bit plv8/plcoffee experimental binaries&lt;/a&gt; and instructions.  We haven&#039;t recompiled against
9.2beta3, but our existing binaries seem to work fine on our beta3 install.&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/263-PLV8JS-and-PLCoffee-Part-2-JSON-search-requests.html#extended&quot;&gt;Continue reading &quot;PLV8JS and PLCoffee Part 2: JSON search requests&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 09 Aug 2012 01:35:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/263-guid.html</guid>
    <category>plcoffee</category>
<category>pljavascript</category>
<category>plv8</category>

</item>
<item>
    <title>PLV8JS and PLCoffee Part 1: Upserting</title>
    <link>http://www.postgresonline.com/journal/archives/262-PLV8JS-and-PLCoffee-Part-1-Upserting.html</link>
            <category>9.2</category>
            <category>intermediate</category>
            <category>new in postgresql</category>
            <category>pl programming</category>
            <category>plcoffee</category>
            <category>plv8js</category>
            <category>postgis</category>
            <category>postgresql versions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/262-PLV8JS-and-PLCoffee-Part-1-Upserting.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=262</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=262</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;Today&#039;s modern web application workflow in its simplest form looks something like this:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Get dataset as JSON object usually using yet another JSON query object to pass the request using a javascript framework like JQuery/ExtJS/OpenLayers/Leaflet
	etc.&lt;/li&gt;
	&lt;li&gt;Make changes to JSON dataset object and send back to the web server.&lt;/li&gt;
	&lt;li&gt;On webserver unravel the JSON object and save to respective database tables.  This part is really yucky as it often involves the web application
	server side language doing the unraveling and then yet another step of setting up stored procedures or other update logic to consume it.&lt;/li&gt; 
&lt;/ol&gt;
&lt;p&gt;We hate the way people build tiers
for the same reason &lt;a href=&quot;http://www.southparkstudios.com/clips/152796/lines-lines-lines&quot; target=&quot;_blank&quot;&gt;Cartman hates lines&lt;/a&gt; at the amusement park. 
Sure tiers are great for certain things like building connected microcosms, but most of the time they are overkill  
and if applied too early make your application needlessly complicated. In the end all we care about is data: &lt;em&gt;serving data&lt;/em&gt;, &lt;em&gt;analyzing data&lt;/em&gt;, &lt;em&gt;getting good data&lt;/em&gt; and everything else is just peacock feathers.&lt;/p&gt;  
&lt;p&gt;The introduction of JSON type support in PostgreSQL 9.2 and languages &lt;a href=&quot;https://code.google.com/p/plv8js/wiki/PLV8&quot; target=&quot;_blank&quot;&gt;PL/V8&lt;/a&gt; (PL/Javascript) and its Pythoness-like twin &lt;a href=&quot;http://coffeescript.org/&quot;&gt;PL/Coffee&lt;/a&gt;  
provides several options for bringing your data and application closer together since they have native support for JSON.  
In this first part we&#039;ll demonstrate one: &lt;em&gt;An upsert stored procedure that takes a single JSON object instead of separate args and updates existing data and adds missing records&lt;/em&gt;.
In later articles we&#039;ll show
you the front end app and also add a sprinkle of PostGIS in there to demonstrate working with custom types. &lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/262-PLV8JS-and-PLCoffee-Part-1-Upserting.html#extended&quot;&gt;Continue reading &quot;PLV8JS and PLCoffee Part 1: Upserting&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sat, 21 Jul 2012 13:13:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/262-guid.html</guid>
    <category>json</category>
<category>plcoffee</category>
<category>plv8</category>
<category>postgresql 9.2</category>

</item>
<item>
    <title>Building PLV8JS and PLCoffee for Windows using MingW64 w64-w32</title>
    <link>http://www.postgresonline.com/journal/archives/261-Building-PLV8JS-and-PLCoffee-for-Windows-using-MingW64-w64-w32.html</link>
            <category>9.2</category>
            <category>advanced</category>
            <category>pl programming</category>
            <category>plcoffee</category>
            <category>plv8js</category>
            <category>postgresql versions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/261-Building-PLV8JS-and-PLCoffee-for-Windows-using-MingW64-w64-w32.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=261</wfw:comment>

    <slash:comments>8</slash:comments>
    <wfw:commentRss>http://www.postgresonline.com/journal/rss.php?version=2.0&amp;type=comments&amp;cid=261</wfw:commentRss>
    

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;As mentioned in our previous article &lt;a href=&quot;http://www.postgresonline.com/journal/archives/260-Building-on-MingW-and-deploying-on-VC-compiled-PostgreSQL-Why-and-Why-not.html&quot; target=&quot;_blank&quot;&gt;Building on MingW deploying on VC&lt;/a&gt; we often build on MingW and deploy on Windows servers running EDB distributed VC PostgreSQL builds
for extensions we want that don&#039;t come packaged.  One of the new ones we are really excited about is the PL/V8 and PL/Coffee ones. Could we do it
and would it actually work on a VC build.  YES WE CAN and yes it does. I HAZ Coffee and a V8: &lt;img src=&quot;/images/journal/plv8js_plcoffee.png&quot; /&gt;.&lt;/p&gt;

&lt;p&gt;Here are some instructions we hope others will find useful. Even if you aren&#039;t on
Windows, you might still find them useful since MingW behaves much like other Unix environments.&lt;/p&gt;
&lt;div style=&#039;background-color:yellow&#039;&gt;UPDATE We rebuilt these against 9.2.1 and PLV8 1.3.  Refer to &lt;a href=&quot;http://www.postgresonline.com/journal/archives/280-PLV8-1.3-windows-binaries-for-PostgreSQL-9.2.html&quot; target=&quot;_blank&quot;&gt;PLV8 1.3 windows binaries for PostgreSQL 9.2&lt;/a&gt; for further details.&lt;/div&gt;
&lt;p&gt;If you are on windows, and just want to start using PLV8 and PLCoffee.  We have binary builds for both &lt;a href=&quot;/downloads/pg92plv8jsbin_w32.zip&quot;&gt;PostgreSQL 9.2 Windows 32-bit (pg92plv8jsbin_w32.zip)&lt;/a&gt; and &lt;a href=&quot;/downloads/pg92plv8jsbin_w64.zip&quot;&gt;PostgreSQL 9.2 Windows 64-bit (pg92plv8jsbin_w64.zip)&lt;/a&gt; which you should be able to just extract into your PostgreSQL 9.2 beta windows install.  We quickly tested with EDB VC++ builds and they seem to work fine
on standard VC++ PostgreSQL 9.2beta2 installs. We haven&#039;t bothered building for lower PostgreSQL, but if there is some interest, we&#039;d be happy to try. &lt;/p&gt;  &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/261-Building-PLV8JS-and-PLCoffee-for-Windows-using-MingW64-w64-w32.html#extended&quot;&gt;Continue reading &quot;Building PLV8JS and PLCoffee for Windows using MingW64 w64-w32&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 16 Jul 2012 18:55:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/261-guid.html</guid>
    <category>coffeescript</category>
<category>postgresql 9.2</category>
<category>v8</category>

</item>

</channel>
</rss>