<?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 - 9.3</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>Wed, 22 May 2013 14:21:58 GMT</pubDate>

    <image>
        <url>http://www.postgresonline.com/journal/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Postgres OnLine Journal - 9.3 - 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>KNN GIST with a Lateral twist: Coming soon to a database near you</title>
    <link>http://www.postgresonline.com/journal/archives/306-KNN-GIST-with-a-Lateral-twist-Coming-soon-to-a-database-near-you.html</link>
            <category>9.3</category>
            <category>new in postgresql</category>
            <category>postgis</category>
            <category>postgresql versions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/306-KNN-GIST-with-a-Lateral-twist-Coming-soon-to-a-database-near-you.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=306</wfw:comment>

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

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;One of the things that really frustrated me about the KNN GIST distance box box centroid operators that came in PostgreSQL 9.1 and PostGIS 2.0 was the fact that one of the elements 
needed to be constant to take advantage of the index.  In PostGIS speak, this meant you couldn&#039;t put it in the FROM clause and could only enjoy it in one of two ways.&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/306-KNN-GIST-with-a-Lateral-twist-Coming-soon-to-a-database-near-you.html#extended&quot;&gt;Continue reading &quot;KNN GIST with a Lateral twist: Coming soon to a database near you&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 21 May 2013 20:35:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/306-guid.html</guid>
    <category>lateral</category>
<category>postgis</category>
<category>postgresql 9.3</category>

</item>
<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>3</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>PostGIS 2.1.0 beta2 is out and windows binaries available</title>
    <link>http://www.postgresonline.com/journal/archives/304-PostGIS-2.1.0-beta2-is-out-and-windows-binaries-available.html</link>
            <category>9.3</category>
            <category>new in postgresql</category>
            <category>postgis</category>
            <category>postgresql versions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/304-PostGIS-2.1.0-beta2-is-out-and-windows-binaries-available.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=304</wfw:comment>

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

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;PostGIS 2.1.0 beta2 is out. Details on what&#039;s new in it are in official news release: &lt;a href=&quot;http://postgis.net/2013/05/11/postgis-2-1-0beta2&quot; target=&quot;_blank&quot;&gt;http://postgis.net/2013/05/11/postgis-2-1-0beta2&lt;/a&gt;.
 This is the first version of PostGIS to work with PostgreSQL 9.3, so if you are planning to experiment with PostgreSQL 9.3 coming out soon, use this one. Also check out the documentation in new ePUB offering format if you have an ereader and let us know how it looks. It seems to vary alot depending on what ePub reader used.&lt;/p&gt;

&lt;p&gt;For windows users, we&#039;ve got binary builds available compiled against PostgreSQL 9.3beta1 (and also available for 9.2 9x32,64) and 9.0,9.1 (x64). Details on windows PostGIS downloads page: &lt;a href=&quot;http://postgis.net/windows_downloads&quot; target=&quot;_blank&quot;&gt;http://postgis.net/windows_downloads&lt;/a&gt;.  It does not yet have the new Advanced 3D offering (provided by SFCGAL &lt;a href=&quot;https://github.com/Oslandia/SFCGAL&quot; target=&quot;_blank&quot;&gt;https://github.com/Oslandia/SFCGAL&lt;/a&gt;), but we hope to have that compiled and packaged with the binaries before release time.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 12 May 2013 18:38:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/304-guid.html</guid>
    <category>3d</category>
<category>postgis</category>
<category>raster</category>

</item>
<item>
    <title>Which PostGIS should you use with PostgreSQL 9.3</title>
    <link>http://www.postgresonline.com/journal/archives/303-Which-PostGIS-should-you-use-with-PostgreSQL-9.3.html</link>
            <category>9.3</category>
            <category>postgis</category>
            <category>postgresql versions</category>
            <category>q&amp;a</category>
    
    <comments>http://www.postgresonline.com/journal/archives/303-Which-PostGIS-should-you-use-with-PostgreSQL-9.3.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=303</wfw:comment>

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

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;PostgreSQL 9.3 will be coming out in beta soon and with that, some who want to experiment with both PostGIS and PostgreSQL 9.3 have asked if they can use PostGIS 2.0.  The answer is &lt;b&gt;NO&lt;/b&gt;. A lot of major changes happened in PostgreSQL 9.3 that required us to patch up upcoming PostGIS 2.1.  These changes were not backported to 2.0 and I personally do not plan to back-port them unless lightning strikes me and I escape unscathed, a big wad of cash falls from the sky, or for some reason we can&#039;t make the 2.1 cut before 9.3 comes out. So if you are planning to experiment with PostgreSQL 9.3, &lt;b&gt;PLEASE use PostGIS 2.1 development branch&lt;/b&gt;.  I will try to make sure we release 2.1 before PostgreSQL 9.3 comes out even if I have to resort to hitting some people over the head with a rubber bat :).&lt;/p&gt;

&lt;p&gt;If ever in doubt what versions of PostGIS works with what versions of PostgreSQL /GEOS / GDAL, please refer to the matrix that we try to keep up to date. 
&lt;a href=&quot;http://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS&quot; target=&quot;_blank&quot;&gt;http://trac.osgeo.org/postgis/wiki/UsersWikiPostgreSQLPostGIS&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now some people might say &amp;quot;Isn&#039;t it cruel  not to support PostGIS 2.0 for 9.3&amp;quot;, and my answer is &amp;quot;it&#039;s crueler to&amp;quot;.  The reason is simple.  We have limited bandwidth for testing permutations of things and the more permutations of things we support, the dirtier our code base becomes making it harder to maintain and also the less time we can devote to properly testing each permutation.  I&#039;d rather say we don&#039;t support something than to do a half-hearted job of supporting all. 
On a slightly different, but also pragmatic note, package maintainers (except for windows maintainers :)) generally only carry one version of PostGIS per version of PostgreSQL, and I&#039;d rather users getting from packages  see our best foot than a two year old aging foot.&lt;/p&gt;

&lt;p&gt;Note: that going from PostGIS 2.0 to 2.1 is a soft upgrade so you can install 2.1 on your existing PostgreSQL 9.2 without dump restore and then you should be able to pg_upgrade over to 9.3 if your database is  too big to dump restore.&lt;/p&gt;

 
    </content:encoded>

    <pubDate>Tue, 30 Apr 2013 00:30:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/303-guid.html</guid>
    <category>postgis</category>
<category>postgresql 9.3</category>

</item>
<item>
    <title>pgRouting windows binaries for PostgreSQL 9.2 32-bit and 64-bit</title>
    <link>http://www.postgresonline.com/journal/archives/300-pgRouting-windows-binaries-for-PostgreSQL-9.2-32-bit-and-64-bit.html</link>
            <category>9.2</category>
            <category>9.3</category>
            <category>contrib spotlight</category>
            <category>pgRouting</category>
            <category>postgis</category>
            <category>postgresql versions</category>
            <category>winextensions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/300-pgRouting-windows-binaries-for-PostgreSQL-9.2-32-bit-and-64-bit.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=300</wfw:comment>

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

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;We&#039;ve got experimental &lt;a href=&quot;http://pgrouting.org&quot; target=&quot;_blank&quot;&gt;pgRouting&lt;/a&gt; windows binaries available for windows PostgreSQL 9.2 32-bit and 64-bit for pgRouting 1.0.7 development branch.  More details on our &lt;a href=&quot;http://www.bostongis.com/blog/index.php?/archives/215-pgRouting-1.07dev-windows-binaries-available-for-PostgreSQL-9.2-32-bit-and-64-bit.html&quot; target=&quot;_blank&quot;&gt;Boston GIS blog page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The final versions we plan to release with upcoming PostGIS 2.1 PostgreSQL 9.2 on stackbuilder as part of the PostGIS install. Barring no difficulties we&#039;ll also have experimental binaries for PostgreSQL 9.3 releases once 9.3 reaches beta.&lt;/p&gt;

&lt;p&gt;This version and upcoming pgRouting versions support the PostgreSQL extension model, so if you have postgis already installed, its just an additonal simple step:&lt;/p&gt;
&lt;br /&gt;&lt;code&gt;CREATE EXTENSION pgrouting;&lt;/code&gt; 
    </content:encoded>

    <pubDate>Tue, 09 Apr 2013 00:26:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/300-guid.html</guid>
    <category>pgrouting</category>
<category>postgis</category>
<category>windows</category>

</item>
<item>
    <title>PostGIS In Action 2nd Edition MEAP 3 Update</title>
    <link>http://www.postgresonline.com/journal/archives/299-PostGIS-In-Action-2nd-Edition-MEAP-3-Update.html</link>
            <category>9.3</category>
            <category>editor note</category>
            <category>gis</category>
            <category>postgis</category>
    
    <comments>http://www.postgresonline.com/journal/archives/299-PostGIS-In-Action-2nd-Edition-MEAP-3-Update.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=299</wfw:comment>

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

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;The 3rd MEAP update of &lt;a href=&quot;http://www.postgis.us/page_buy_book&quot; target=&quot;_blank&quot;&gt;PostGIS In Action, 2nd Edition&lt;/a&gt; will be going out very shortly
to Early Action purchasers.  Keep your eyes peeled.  Lots of errata corrections in previous chapters and appendix, and one
very VERY new chapter on Raster functions which took a ton of time to write, so hopefully it will be well received. Our progress on the chapters is listed on &lt;a href=&quot;http://www.postgis.us/chapters_edition_2&quot; target=&quot;_blank&quot;&gt;PostGIS In Action 2nd Edition Chapters&lt;/a&gt; and all the ones marked as completed you will find in the MEAP. The ones with paperclips have downloadable code and data which you can click on the paperclip to download.&lt;/p&gt;

&lt;p&gt;Regarding Raster, the Raster Function chapter is just merely the tip. You&#039;ll see a lot more raster usage in upcoming &lt;a href=&quot;http://www.postgis.us/chapter_09_edition_2&quot; target=&quot;_blank&quot;&gt;Relating two or more spatial objects&lt;/a&gt; and Raster Processing chapter which we are still fleshing out. &lt;/p&gt;
&lt;p&gt;We are immensely grateful to all the early action subscribers who have &lt;a href=&quot;http://www.manning-sandbox.com/forum.jspa?forumID=846&quot; target=&quot;_blank&quot;&gt;posted errata&lt;/a&gt; or general comments about what can be clarified or examples that don&#039;t work. General comments about what specific kinds of examples you&#039;d like to see are also welcome. Your opinions
really influence what we write and make for a better book.&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/299-PostGIS-In-Action-2nd-Edition-MEAP-3-Update.html#extended&quot;&gt;Continue reading &quot;PostGIS In Action 2nd Edition MEAP 3 Update&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 05 Apr 2013 19:06:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/299-guid.html</guid>
    <category>book writing</category>
<category>postgis</category>

</item>
<item>
    <title>PostGIS 2.0.3 for Windows x32 and x64 installers</title>
    <link>http://www.postgresonline.com/journal/archives/296-PostGIS-2.0.3-for-Windows-x32-and-x64-installers.html</link>
            <category>8.4</category>
            <category>9.0</category>
            <category>9.1</category>
            <category>9.2</category>
            <category>9.3</category>
            <category>editor note</category>
            <category>postgis</category>
            <category>postgresql versions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/296-PostGIS-2.0.3-for-Windows-x32-and-x64-installers.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=296</wfw:comment>

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

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;We have all the setup executables for PostgreSQL 8.4-9.2 32-bit and
PostgreSQL 9.1-9.2 x64-bit for PostGIS 2.0.3.  We&#039;ll have the 9.0x64-bit
ones up shortly but do have the binaries.&lt;/p&gt;

&lt;p&gt;We are planning to release these to stackbuilder sometime next week, but
would like some feedback first with any issues people run into.&lt;/p&gt;

&lt;p&gt;One person already reported a serious bug in our original packaging which we
fixed. If you already installed 2.0.3 the x64-bit version or any of the 9.2
versions (both x32 and x64) that was not marked as -2.zip, -2.exe, you&#039;ll
want to reinstall. The 8.4-9.1 32-bits were not affected so just have a -1.&lt;/p&gt;

&lt;p&gt;Packages can be downloaded from: &lt;br /&gt;
&lt;a href=&quot;http://download.osgeo.org/postgis/windows&quot; target=&quot;_blank&quot;&gt;http://download.osgeo.org/postgis/windows&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;General details on what is included:&lt;/p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://postgis.net/windows_downloads&quot; target=&quot;_blank&quot;&gt;http://postgis.net/windows_downloads&lt;/a&gt;
&lt;br /&gt;
&lt;p&gt;As always if you are installing for PostgreSQL x64 make sure to pick a zip
or installer with 64 in the name.  The unmarked or marked with 32 are just
for PostgreSQL 32-bit.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Sun, 17 Mar 2013 01:48:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/296-guid.html</guid>
    <category>postgis</category>

</item>
<item>
    <title>PostgreSQL 9.3 postgres_fdw: a Test Drive</title>
    <link>http://www.postgresonline.com/journal/archives/294-PostgreSQL-9.3-postgres_fdw-a-Test-Drive.html</link>
            <category>9.3</category>
            <category>fdws</category>
            <category>new in postgresql</category>
            <category>postgis</category>
            <category>postgresql versions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/294-PostgreSQL-9.3-postgres_fdw-a-Test-Drive.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=294</wfw:comment>

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

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;Just recently saw Michael Paguier&#039;s article on the &lt;a href=&quot;http://michael.otacoo.com/postgresql-2/postgres-9-3-feature-highlight-postgres_fdw/&quot; target=&quot;_blank&quot;&gt;recent commit of postgres_fdw&lt;/a&gt; so I was excited to try this out for myself.  Questions we wanted to answer/experience were:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;i&gt;Can I connect against different versions of PostgreSQL?&lt;/i&gt; Yes to test I tried connecting from my PostgreSQL 9.3 dev instance to my 9.2 instance on another box.&lt;/li&gt;
	&lt;li&gt;&lt;i&gt;Can I use a foreign type like -- you guessed it &lt;b&gt;PostGIS&lt;/b&gt; if we have same version of PostGIS installed on both databases?&lt;/i&gt; Yes. I didn&#039;t try with different versions so not sure if that would work especially since the structure changed a bit between 1.5 and 2.0.  I suspect 2.0 and 2.1 would work fine and might be a good way to cheat run 2.1 on 9.3 but creating derivatives of my 2.0 data with functions only available in 2.1.&lt;/li&gt;
	&lt;li&gt;&lt;i&gt;Will it use my spatial index?&lt;/i&gt; No or at least we couldn&#039;t figure out how and I don&#039;t see how it is possible, but would be nice if it could be&lt;/li&gt;
	&lt;li&gt;&lt;i&gt;Can I have a table defined with dynamic SQL?&lt;/i&gt; Nope or at least the docs don&#039;t mention it.  This is a feature I really liked about the ODBC_FDW
		because often times I want the table to be filtered especially if I need my filter to use an expensive index like a spatial one or utilize functions only available on the foreign server.  If that were part of the definition of the foreign table, then it could in theory process that part on the foreign server. So this makes postgres_fdw not a good replacement for dblink in many cases.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So here are the tests we did to experiment with:&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/294-PostgreSQL-9.3-postgres_fdw-a-Test-Drive.html#extended&quot;&gt;Continue reading &quot;PostgreSQL 9.3 postgres_fdw: a Test Drive&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 22 Feb 2013 23:12:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/294-guid.html</guid>
    <category>fdw</category>
<category>foreign data wrapper</category>
<category>postgres_fdw</category>

</item>
<item>
    <title>PostgreSQL 9.3 Lateral Part2: The Lateral Left Join</title>
    <link>http://www.postgresonline.com/journal/archives/285-PostgreSQL-9.3-Lateral-Part2-The-Lateral-Left-Join.html</link>
            <category>9.3</category>
            <category>intermediate</category>
            <category>new in postgresql</category>
            <category>other dbms</category>
            <category>postgis</category>
            <category>postgresql versions</category>
            <category>sql server</category>
    
    <comments>http://www.postgresonline.com/journal/archives/285-PostgreSQL-9.3-Lateral-Part2-The-Lateral-Left-Join.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=285</wfw:comment>

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

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;In the &lt;a href=&quot;http://www.postgresonline.com/journal/archives/284-PostgreSQL-9.3-Lateral-Part-1-Use-with-HStore.html&quot; target=&quot;_blank&quot;&gt;last article&lt;/a&gt; we said you can&#039;t have a LEFT JOIN with LATERAL.  Turns out we were mistaken and YES indeed you can and when you do it is equivalent or more powerful than &lt;a href=&quot;http://www.simple-talk.com/sql/t-sql-programming/sql-server-apply-basics/&quot; target=&quot;_blank&quot;&gt;SQL Server&#039;s OUTER APPLY&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Let us say that in our query we wanted all my zips returned but for ones that had keys where the value is in a certain range, we want those keys returned.  we&#039;d do this.  The fact we need all even if they have no such keys necessitates us putting the condition in the ON rather than the WHERE.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&lt;span class=&quot;syntax0&quot;&gt;&lt;span class=&quot;syntax-KEYWORD1&quot;&gt;SELECT&lt;/span&gt; zip, &lt;span class=&quot;syntax-OPERATOR&quot;&gt;(&lt;/span&gt;h&lt;span class=&quot;syntax-OPERATOR&quot;&gt;)&lt;/span&gt;.key, &lt;span class=&quot;syntax-OPERATOR&quot;&gt;(&lt;/span&gt;h&lt;span class=&quot;syntax-OPERATOR&quot;&gt;)&lt;/span&gt;.&lt;span class=&quot;syntax-KEYWORD4&quot;&gt;value&lt;/span&gt; &lt;span class=&quot;syntax-KEYWORD1&quot;&gt;As&lt;/span&gt; val
 &lt;span class=&quot;syntax-KEYWORD1&quot;&gt;FROM&lt;/span&gt; zcta5 &lt;span class=&quot;syntax-KEYWORD1&quot;&gt;AS&lt;/span&gt; foo 
   LEFT JOIN LATERAL &lt;span class=&quot;syntax-FUNCTION&quot;&gt;each&lt;/span&gt;&lt;span class=&quot;syntax-OPERATOR&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-FUNCTION&quot;&gt;hstore&lt;/span&gt;&lt;span class=&quot;syntax-OPERATOR&quot;&gt;(&lt;/span&gt;foo&lt;span class=&quot;syntax-OPERATOR&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;syntax-OPERATOR&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;syntax-LITERAL1&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;syntax-LITERAL1&quot;&gt;zip&lt;/span&gt;&lt;span class=&quot;syntax-LITERAL1&quot;&gt;&#039;&lt;/span&gt;::text&lt;span class=&quot;syntax-OPERATOR&quot;&gt;)&lt;/span&gt;  &lt;span class=&quot;syntax-KEYWORD1&quot;&gt;As&lt;/span&gt; h 
    &lt;span class=&quot;syntax-KEYWORD1&quot;&gt;ON&lt;/span&gt; &lt;span class=&quot;syntax-OPERATOR&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;syntax-OPERATOR&quot;&gt;(&lt;/span&gt;h&lt;span class=&quot;syntax-OPERATOR&quot;&gt;)&lt;/span&gt;.&lt;span class=&quot;syntax-KEYWORD4&quot;&gt;value&lt;/span&gt; &lt;span class=&quot;syntax-KEYWORD1&quot;&gt;BETWEEN&lt;/span&gt; &lt;span class=&quot;syntax-LITERAL1&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;syntax-LITERAL1&quot;&gt;12345&lt;/span&gt;&lt;span class=&quot;syntax-LITERAL1&quot;&gt;&#039;&lt;/span&gt; &lt;span class=&quot;syntax-KEYWORD1&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;syntax-LITERAL1&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;syntax-LITERAL1&quot;&gt;14567&lt;/span&gt;&lt;span class=&quot;syntax-LITERAL1&quot;&gt;&#039;&lt;/span&gt;&lt;span class=&quot;syntax-OPERATOR&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;syntax-KEYWORD1&quot;&gt;ORDER&lt;/span&gt; &lt;span class=&quot;syntax-KEYWORD1&quot;&gt;BY&lt;/span&gt; zip
   &lt;span class=&quot;syntax-KEYWORD1&quot;&gt;limit&lt;/span&gt; &lt;span class=&quot;syntax-DIGIT&quot;&gt;5&lt;/span&gt;;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Output would be&lt;/p&gt;
&lt;pre&gt; zip  |  key   |   val
------+--------+----------
00601 |        |
00602 |        |
00603 |        |
00606 | awater | 12487.00
00610 | hu10   | 12618&lt;/pre&gt;
 
    </content:encoded>

    <pubDate>Sun, 06 Jan 2013 15:35:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/285-guid.html</guid>
    <category>lateral</category>
<category>postgresql 9.3</category>

</item>
<item>
    <title>PostgreSQL 9.3 Lateral Part 1: Use with HStore</title>
    <link>http://www.postgresonline.com/journal/archives/284-PostgreSQL-9.3-Lateral-Part-1-Use-with-HStore.html</link>
            <category>9.3</category>
            <category>contrib spotlight</category>
            <category>hstore</category>
            <category>postgis</category>
            <category>postgresql versions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/284-PostgreSQL-9.3-Lateral-Part-1-Use-with-HStore.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=284</wfw:comment>

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

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;One of the improvements coming in PostgreSQL 9.3 is the new &lt;code&gt;LATERAL&lt;/code&gt; SQL clause.  LATERAL allows you to write more
succinct code than you would be able to otherwise and will be a welcome companion to extensions like hstore and PostGIS which both
have a plethora of set returning functions.  In this article, I&#039;ll just demonstrate it&#039;s use with hstore and subsequent I&#039;ll talk
about it&#039;s potential use in PostGIS raster,geometry, and topology for exploding subelements.&lt;/p&gt;

&lt;p&gt;One thing I was very interested in aside from the succinctness is whether it will be more performant than the older approach.
A perfect test case for hstore would be the example we just demonstrated in &lt;a href=&quot;http://www.postgresonline.com/journal/archives/283-Unpivoting-data-in-PostgreSQL.html&quot; target=&quot;_blank&quot;&gt;Unpivoting data in PostgreSQL&lt;/a&gt;.  For this example, we&#039;ll rewrite the hstore view using LATERAL instead of employing a subselect.&lt;/p&gt;
 &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/284-PostgreSQL-9.3-Lateral-Part-1-Use-with-HStore.html#extended&quot;&gt;Continue reading &quot;PostgreSQL 9.3 Lateral Part 1: Use with HStore&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 06 Jan 2013 07:00:00 -0500</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/284-guid.html</guid>
    <category>lateral</category>
<category>postgresql 9.3</category>

</item>
<item>
    <title>PostgreSQL 9.3 Enhancements and Wishes from a PostGIS Developer POV</title>
    <link>http://www.postgresonline.com/journal/archives/270-PostgreSQL-9.3-Enhancements-and-Wishes-from-a-PostGIS-Developer-POV.html</link>
            <category>9.3</category>
            <category>postgis</category>
            <category>postgresql versions</category>
    
    <comments>http://www.postgresonline.com/journal/archives/270-PostgreSQL-9.3-Enhancements-and-Wishes-from-a-PostGIS-Developer-POV.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=270</wfw:comment>

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

    <author>nospam@example.com (Leo Hsu and Regina Obe)</author>
    <content:encoded>
    &lt;p&gt;One of the great benefits of building a project like PostGIS ontop of PostgreSQL is that when PostgreSQL stands higher, PostGIS becomes that much more powerful without lifting a finger. PostgreSQL development speed has been accelerating which is pretty exhilarating from a dependent project Point of view.
Now that PostgreSQL 9.3 is in full-swing we wanted to itemize some things we see coming in this release that will have a great impact on PostGIS use and development. We&#039;d also like to point out
items we don&#039;t yet see listed that the PostGIS development team has been long waiting for. We&#039;ll go over both in this article.&lt;/p&gt; &lt;br /&gt;&lt;a href=&quot;http://www.postgresonline.com/journal/archives/270-PostgreSQL-9.3-Enhancements-and-Wishes-from-a-PostGIS-Developer-POV.html#extended&quot;&gt;Continue reading &quot;PostgreSQL 9.3 Enhancements and Wishes from a PostGIS Developer POV&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 18 Sep 2012 23:03:00 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/270-guid.html</guid>
    <category>postgresql 9.3</category>

</item>

</channel>
</rss>