Great!<div>The query send from TinyOws was (read it from tinyows.log file):</div><div>SELECT substr(postgis_full_version(), 10, 5);</div><div><br></div><div>And in fact for some odd reason I didn&#39;t have this function loaded on my DB. I don&#39;t know why, perhaps because I&#39;ve done an incomplete dump...</div>
<div>Anyway, I&#39;ve copied the function &quot;postgis_full_version()&quot; from another DB with Postgis well installed and created it in my current DB, et voilà!</div><div><br></div><div>Thanks a lot.</div><div>Riccardo<br>
<br><div class="gmail_quote">2012/5/2 Rahkonen Jukka <span dir="ltr">&lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi" target="_blank">Jukka.Rahkonen@mmmtike.fi</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>





<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>Hi,</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>Increase the log_level to 8 and see from the log file which SQL queries TinyOWS is sending. You can test them with psql for comparison.</span></font></div>

<div dir="ltr" align="left"><font face="Arial"><span><font color="#0000ff">And I suppose <font size="3" face="Times New Roman">it would be better to remove server=&quot;</font></font><a href="http://127.0.0.1/" target="_blank"><font size="3" face="Times New Roman">http://127.0.0.1/</font></a><font color="#0000ff" size="3" face="Times New Roman">&quot; because
 it is not used any more. </font></span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>-Jukka Rahkonen-</span></font></div>
<br>
<blockquote style="BORDER-LEFT:#0000ff 2px solid;PADDING-LEFT:5px;MARGIN-LEFT:5px;MARGIN-RIGHT:0px" dir="ltr">
<div dir="ltr" lang="fi" align="left">
<hr>
<font face="Tahoma"><b>Lähettäjä:</b> <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>]
<b>Puolesta </b>Riccardo Gaeta<br>
<b>Lähetetty:</b> 2. toukokuuta 2012 14:28<br>
<b>Vastaanottaja:</b> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<b>Aihe:</b> [mapserver-users] [TinyOWS] No PostGIS available in database<br>
</font><br>
</div><div><div class="h5">
<div></div>
Hi all,
<div>I&#39;m using Tinyows 1.0.0 on redhat machine, postgresql 8.4 and postgis 1.5.3. I&#39;ve checked all these on the database:</div>
<div>SELECT PostGIS_Lib_Version();</div>
<div>SELECT PostGIS_LibXML_Version();</div>
<div>SELECT PostGIS_GEOS_Version();</div>
<div>SELECT PostGIS_PROJ_Version();</div>
<div><br>
</div>
<div>And all seems to answer good.</div>
<div>But when I check the tinyows I get this error:</div>
<div><br>
</div>
<div>
<div>Content-Type: application/xml</div>
<div><br>
</div>
<div>&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;</div>
<div>&lt;ows:ExceptionReport</div>
<div> xmlns=&#39;<a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a>&#39;</div>
<div> xmlns:ows=&#39;<a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a>&#39;</div>
<div> xmlns:xsi=&#39;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&#39;</div>
<div> xsi:schemaLocation=&#39;<a href="http://www.opengis.net/ows" target="_blank">http://www.opengis.net/ows</a>
<a href="http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd" target="_blank">http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd</a>&#39;</div>
<div> version=&#39;1.1.0&#39; language=&#39;en&#39;&gt;</div>
<div> &lt;ows:Exception exceptionCode=&#39;ConnectionFailed&#39; locator=&#39;init_OWS&#39;&gt;</div>
<div>  &lt;ows:ExceptionText&gt;No PostGIS available in database&lt;/ows:ExceptionText&gt;</div>
<div> &lt;/ows:Exception&gt;</div>
<div>&lt;/ows:ExceptionReport&gt;</div>
</div>
<div><br>
</div>
<div>I&#39;ve found an old post about this, date <span style="color:rgb(136,136,136);font-size:medium;font-family:monospace">28 Mar 2012 </span>by <span style="font-size:medium">Neelima
 Emmani</span>, but with no rposecution.</div>
<div><br>
</div>
<div>Anyone could help me please?</div>
<div><br>
</div>
<div>Thanks to all,</div>
<div>Riccardo</div>
<div><br>
</div>
<div>P.S.: My tinyows.xml look like this:</div>
<div><br>
</div>
<div>
<div>&lt;tinyows online_resource=&quot;<a href="http://127.0.0.1/cgi-bin/tinyows" target="_blank">http://127.0.0.1/cgi-bin/tinyows</a>&quot;  schema_dir=&quot;/usr/local/share/tinyows/schema/&quot; log=&quot;/tmp/tinyows.log&quot; log_level=&quot;1&quot; &gt;</div>

<div><br>
</div>
<div>  &lt;pg host=&quot;localhost&quot; user=&quot;user&quot; password=&quot;pwd&quot; dbname=&quot;dbname&quot; port=&quot;5432&quot;/&gt;</div>
<div><br>
</div>
<div>  &lt;metadata name=&quot;TinyOWS Server&quot; title=&quot;TinyOWS Server - Demo Service&quot; /&gt;</div>
<div><br>
</div>
<div>  &lt;layer retrievable=&quot;1&quot;</div>
<div>         queryable=&quot;1&quot;</div>
<div>         writable=&quot;0&quot;</div>
<div>         ns_prefix=&quot;tows&quot;</div>
<div>         ns_uri=&quot;<a href="http://127.0.0.1/" target="_blank">http://127.0.0.1/</a>&quot;</div>
<div>         server=&quot;<a href="http://127.0.0.1/" target="_blank">http://127.0.0.1/</a>&quot;</div>
<div>         name=&quot;mytable&quot;</div>
<div>         schema=&quot;myschema&quot;</div>
<div>         srid=&quot;900913,3785&quot;</div>
<div>         title=&quot;mylayer_tiny&quot;</div>
<div>         abstract=&quot;test&quot;</div>
<div>  /&gt;</div>
<div><br>
</div>
<div>&lt;/tinyows&gt;</div>
</div>
<div><br>
</div>
</div></div></blockquote>
</div>

</blockquote></div><br></div>