<?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 - Comments</title>
    <link>http://www.postgresonline.com/journal/</link>
    <description>Postgres OnLine Journal - 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>Thu, 17 May 2012 13:27:22 GMT</pubDate>

    <image>
        <url>http://www.postgresonline.com/journal/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Postgres OnLine Journal - Comments - Postgres OnLine Journal - 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>Luc: ODBC Foreign Data wrapper to query SQL Server on Window - Part 2</title>
    <link>http://www.postgresonline.com/journal/archives/249-ODBC-Foreign-Data-wrapper-to-query-SQL-Server-on-Window-Part-2.html#c4433</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/249-ODBC-Foreign-Data-wrapper-to-query-SQL-Server-on-Window-Part-2.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=249</wfw:comment>

    

    <author>nospam@example.com (Luc)</author>
    <content:encoded>
    Thank you for your answer, but this did not solve the problem.

Notice : in the &quot;Messages&quot; tab, PG wrote the fllowing after executing te select on my foreign table : 

-------------------------
NOTICE:  Opps!


Durée totale d&#039;exécution de la requête :32 ms.
0 ligne récupérée.
------------------------- 
    </content:encoded>

    <pubDate>Wed, 16 May 2012 01:50:05 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/249-guid.html#c4433</guid>
    
</item>
<item>
    <title>Joseph: Cross Compare of SQL Server, MySQL, and PostgreSQL</title>
    <link>http://www.postgresonline.com/journal/archives/51-Cross-Compare-of-SQL-Server,-MySQL,-and-PostgreSQL.html#c4430</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/51-Cross-Compare-of-SQL-Server,-MySQL,-and-PostgreSQL.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=51</wfw:comment>

    

    <author>nospam@example.com (Joseph)</author>
    <content:encoded>
    I prefer paying less for a better thing and not being locked into a monopoly platform. 
    </content:encoded>

    <pubDate>Sun, 13 May 2012 17:38:02 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/51-guid.html#c4430</guid>
    
</item>
<item>
    <title>Regina: REST in PostgreSQL Part 2 B - The REST Server service with PHP 5</title>
    <link>http://www.postgresonline.com/journal/archives/42-REST-in-PostgreSQL-Part-2-B-The-REST-Server-service-with-PHP-5.html#c4424</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/42-REST-in-PostgreSQL-Part-2-B-The-REST-Server-service-with-PHP-5.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=42</wfw:comment>

    

    <author>nospam@example.com (Regina)</author>
    <content:encoded>
    Hmm we still use adodb for abstraction.  Anyrate adodb is just a thin wrapper around the PHP postgresql drivers.  Which PHP version are you using?

As far as PHP database abstraction layers go, there is also Pear DB which is probably more common than ADODB.  There are a couple others I can&#039;t recall, but again they are all just wrappers around the pdo_pgsql and pgsql PHP drivers so any crashing you are experiencing may be the core PHP driver. 
    </content:encoded>

    <pubDate>Wed, 09 May 2012 02:02:10 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/42-guid.html#c4424</guid>
    
</item>
<item>
    <title>Sara: REST in PostgreSQL Part 2 B - The REST Server service with PHP 5</title>
    <link>http://www.postgresonline.com/journal/archives/42-REST-in-PostgreSQL-Part-2-B-The-REST-Server-service-with-PHP-5.html#c4421</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/42-REST-in-PostgreSQL-Part-2-B-The-REST-Server-service-with-PHP-5.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=42</wfw:comment>

    

    <author>nospam@example.com (Sara)</author>
    <content:encoded>
    Hi! I am working through this tutorial and have been able to implement up until the adodb abstraction library crashes. The drivers in the adodb folder support Postgres through 8.0, but not 9.0. A quick web search doesn&#039;t seem to get me any results for updated adodb drivers. Do you have any suggestions for another abstraction library? Thanks in advance,
Sara 
    </content:encoded>

    <pubDate>Sun, 06 May 2012 21:08:40 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/42-guid.html#c4421</guid>
    
</item>
<item>
    <title>Regina: File FDW Family: Part 1 file_fdw</title>
    <link>http://www.postgresonline.com/journal/archives/250-File-FDW-Family-Part-1-file_fdw.html#c4415</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/250-File-FDW-Family-Part-1-file_fdw.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=250</wfw:comment>

    

    <author>nospam@example.com (Regina)</author>
    <content:encoded>
    Peter,
Ah yes.  That&#039;s a great idea.  I should have thought about that one. 
    </content:encoded>

    <pubDate>Fri, 04 May 2012 15:55:01 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/250-guid.html#c4415</guid>
    
</item>
<item>
    <title>Peter: File FDW Family: Part 1 file_fdw</title>
    <link>http://www.postgresonline.com/journal/archives/250-File-FDW-Family-Part-1-file_fdw.html#c4414</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/250-File-FDW-Family-Part-1-file_fdw.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=250</wfw:comment>

    

    <author>nospam@example.com (Peter)</author>
    <content:encoded>
    One way to workaround the date style problem could be to declare the last_change_date as varchar as well and then build a view on top of the FDW table converting the varchar to a proper date using to_date() and the correct date format. 
    </content:encoded>

    <pubDate>Fri, 04 May 2012 11:03:24 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/250-guid.html#c4414</guid>
    
</item>
<item>
    <title>Brasdours: PuTTY for SSH Tunneling to PostgreSQL Server</title>
    <link>http://www.postgresonline.com/journal/archives/38-PuTTY-for-SSH-Tunneling-to-PostgreSQL-Server.html#c4410</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/38-PuTTY-for-SSH-Tunneling-to-PostgreSQL-Server.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=38</wfw:comment>

    

    <author>nospam@example.com (Brasdours)</author>
    <content:encoded>
    A really good article, its exactly what i need but i cant connect with putty. 

I&#039;ve installed freesshd and postgresql on machine server which run on windows server 2003. postgresql.conf is configure like this: listen_addresses = &#039;*&#039;
and pg_hba like this: 
host all all 127.0.0.1/32 md5
host all all 0.0.0.0/0 md5

I want to access to postgresql from home. So, i installed putty and set like you described above with the hostname &#039;brasdours.no-ip.org&#039; of my server. I configure the firewall on both machines to let the port 22 and 5432 open.

And when i try to connect whith putty, it shows a message: connection refused 

I&#039;ll appriciate any help 
    </content:encoded>

    <pubDate>Thu, 03 May 2012 11:21:17 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/38-guid.html#c4410</guid>
    
</item>
<item>
    <title>Regina: PuTTY for SSH Tunneling to PostgreSQL Server</title>
    <link>http://www.postgresonline.com/journal/archives/38-PuTTY-for-SSH-Tunneling-to-PostgreSQL-Server.html#c4409</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/38-PuTTY-for-SSH-Tunneling-to-PostgreSQL-Server.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=38</wfw:comment>

    

    <author>nospam@example.com (Regina)</author>
    <content:encoded>
    Vidas,

Which computer are you trying to connect form?  local is socket port not tcp/ip port.  You should have one for host,  localhost and I suspect you do, but its set to ident (which is standard for ubuntu as I recall).  So its trying to authenticate admin using the ident server on your unix. 
    </content:encoded>

    <pubDate>Thu, 03 May 2012 07:58:19 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/38-guid.html#c4409</guid>
    
</item>
<item>
    <title>Regina: ODBC Foreign Data wrapper to query SQL Server on Window - Part 2</title>
    <link>http://www.postgresonline.com/journal/archives/249-ODBC-Foreign-Data-wrapper-to-query-SQL-Server-on-Window-Part-2.html#c4407</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/249-ODBC-Foreign-Data-wrapper-to-query-SQL-Server-on-Window-Part-2.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=249</wfw:comment>

    

    <author>nospam@example.com (Regina)</author>
    <content:encoded>
    Luc,

the ODBC FDW doesn&#039;t like different casings.  I had similar issues if I had my select with mixed casing column names. Doesn&#039;t matter how it is in sql server, but when you write the select fields should be all lowercase.

So try changing your foreign table to this:

CREATE FOREIGN TABLE super_store_SQLServer.TestSQLServer
(iid Integer NOT NULL
, cnom Varchar(20) NOT NULL)
SERVER TestSQLServer
OPTIONS (database &#039;superstore_SQLServer&#039;
, schema &#039;dbo&#039;
, sql_query &#039;iid, cnom FROM dbo.testPG;&#039;
, sql_count &#039;select count(iId) from dbo.testPG;&#039;); 
    </content:encoded>

    <pubDate>Tue, 01 May 2012 16:49:39 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/249-guid.html#c4407</guid>
    
</item>
<item>
    <title>Luc: ODBC Foreign Data wrapper to query SQL Server on Window - Part 2</title>
    <link>http://www.postgresonline.com/journal/archives/249-ODBC-Foreign-Data-wrapper-to-query-SQL-Server-on-Window-Part-2.html#c4400</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/249-ODBC-Foreign-Data-wrapper-to-query-SQL-Server-on-Window-Part-2.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=249</wfw:comment>

    

    <author>nospam@example.com (Luc)</author>
    <content:encoded>
    Thank you for this work and the good explanations.
However, I tried to apply the recommended steps, but the only result is an empty one (columns are displayed with no data lines, as if the foreign table contained no record).
I’ve built a test table on SQLServer 2005, named “testPG”, containing 2 columns (iId Integer NOT NULL, cName Varchar(20) NOT NULL), and inserted 2 rows (1, “One”) and (2, “Two”).
I created a system dsn named SystemSQLServerPourPG which I tested successfully using MSVisualFoxPro and MSAccess.

Then I created the PostGreSQL script as follows :
CREATE EXTENSION odbc_fdw ;
CREATE SCHEMA super_store_SQLServer ; 

CREATE SERVER TestSQLServer FOREIGN DATA WRAPPER odbc_fdw OPTIONS (dsn &#039;SystemSQLServerPourPG&#039;);

CREATE USER MAPPING 
   FOR postgres
   SERVER TestSQLServer
  OPTIONS (username &#039;sa&#039;,password &#039;mdp&#039;);

CREATE FOREIGN TABLE super_store_SQLServer.TestSQLServer
   (iId Integer NOT NULL
    , cNom Varchar(20) NOT NULL)
   SERVER TestSQLServer
   OPTIONS (database &#039;superstore_SQLServer&#039;
	, schema &#039;dbo&#039;
	, sql_query &#039;iId, cNom FROM dbo.testPG;&#039;
	, sql_count &#039;select count(iId) from dbo.testPG;&#039;);

SELECT * FROM super_store_SQLServer.TestSQLServer ;

The result is an empty result as said earlier.
Did I write something wrong ?

NB : more tests showed that :
* the same result is obtained when using a dsn which does not exist (without any error message)
* the same result is obtained when using an invalid login or password (without any error message)
* the same result is obtained when using an invalid SQL Query (either syntaxically correct or not) (without any error message)
* using wrong parameters names in the CREATE FOREIGN TABLE options causes a crash of the server (without any error message, but you have to restart service), when using an invalid option (e.g “dsnerror” instead of “dsn”) in the CREATE SERVER query brings the following message : “option « dsnerror » invalide”.

Hope you can help.

Luc 
    </content:encoded>

    <pubDate>Fri, 27 Apr 2012 13:55:08 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/249-guid.html#c4400</guid>
    
</item>
<item>
    <title>Vidas: PuTTY for SSH Tunneling to PostgreSQL Server</title>
    <link>http://www.postgresonline.com/journal/archives/38-PuTTY-for-SSH-Tunneling-to-PostgreSQL-Server.html#c4399</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/38-PuTTY-for-SSH-Tunneling-to-PostgreSQL-Server.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=38</wfw:comment>

    

    <author>nospam@example.com (Vidas)</author>
    <content:encoded>
    It so simple, but i can&#039;t. I get error in pg_log:
could not connect to Ident server at address &quot;127.0.0.1&quot;, port 113

But I can connect from notebook with putty and command:
vidas@vartai:~&gt;psql -U admin db
with no problems. My test pg_hba.conf:
local db admin trust
...

putties login name &#039;admin&#039; too.
username in pgAdmin &#039;admin&#039; too. 
    </content:encoded>

    <pubDate>Fri, 27 Apr 2012 06:49:51 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/38-guid.html#c4399</guid>
    
</item>
<item>
    <title>iyemwen: OpenJump for PostGIS Spatial Ad-Hoc Queries</title>
    <link>http://www.postgresonline.com/journal/archives/72-OpenJump-for-PostGIS-Spatial-Ad-Hoc-Queries.html#c4393</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/72-OpenJump-for-PostGIS-Spatial-Ad-Hoc-Queries.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=72</wfw:comment>

    

    <author>nospam@example.com (iyemwen)</author>
    <content:encoded>
    thanks a lot this was very helpful 
    </content:encoded>

    <pubDate>Tue, 24 Apr 2012 19:05:24 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/72-guid.html#c4393</guid>
    
</item>
<item>
    <title>Chris: Starting PostgreSQL in windows without install</title>
    <link>http://www.postgresonline.com/journal/archives/172-Starting-PostgreSQL-in-windows-without-install.html#c4354</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/172-Starting-PostgreSQL-in-windows-without-install.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=172</wfw:comment>

    

    <author>nospam@example.com (Chris)</author>
    <content:encoded>
    I&#039;m trying to use the script on version 8.3.18-1, and I&#039;m getting the following error:

&quot;The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.&quot;

Has anyone here had any luck with this versions other than 9? 
    </content:encoded>

    <pubDate>Fri, 13 Apr 2012 10:36:29 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/172-guid.html#c4354</guid>
    
</item>
<item>
    <title>Regina: PostGIS 2.0.0 is out</title>
    <link>http://www.postgresonline.com/journal/archives/247-PostGIS-2.0.0-is-out.html#c4343</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/247-PostGIS-2.0.0-is-out.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Regina)</author>
    <content:encoded>
    Vlad,
thanks.  Fixed. 
    </content:encoded>

    <pubDate>Mon, 09 Apr 2012 07:07:40 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/247-guid.html#c4343</guid>
    
</item>
<item>
    <title>Vladimir Naumov: PostGIS 2.0.0 is out</title>
    <link>http://www.postgresonline.com/journal/archives/247-PostGIS-2.0.0-is-out.html#c4337</link>
            <category></category>
    
    <comments>http://www.postgresonline.com/journal/archives/247-PostGIS-2.0.0-is-out.html#comments</comments>
    <wfw:comment>http://www.postgresonline.com/journal/wfwcomment.php?cid=247</wfw:comment>

    

    <author>nospam@example.com (Vladimir Naumov)</author>
    <content:encoded>
    Hi! There&#039;s a typo in the second sentence from the end.

Nice work! I was expecting version 2.0.0, now my colleagues can have access to shared raster datasets. It&#039;s very good for my company since we work a lot with satellite imagery and use it in sustainable forest management. Thanks for the work! 
    </content:encoded>

    <pubDate>Sun, 08 Apr 2012 02:42:20 -0400</pubDate>
    <guid isPermaLink="false">http://www.postgresonline.com/journal/archives/247-guid.html#c4337</guid>
    
</item>

</channel>
</rss>
