Thanks Mark and Ben,<br>I will try to understand better what happens here.<br><br>Fred.<br><br><br><div class="gmail_quote">On Wed, May 19, 2010 at 4:31 AM, Ben Madin <span dir="ltr"><<a href="mailto:lists@remoteinformation.com.au">lists@remoteinformation.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Fred,<br>
<div class="im"><br>
On 18/05/2010, at 22:38 , Fred Lehodey wrote:<br>
<br>
> I have no success trying the function probe_geometry_columns() with Postgis 1.5.0<br>
><br>
> 1) Not sure but comparing the SQL with Postgis 1.3.3:<br>
> the clause (in the INSERT step and not the count of probed)<br>
> "sridcheck.consrc LIKE '(srid('||a.attname||') = %)' in postgis 1.3.3<br>
> is now:<br>
> "sridcheck.consrc LIKE '(st_srid('||a.attname||') = %)' in postgis 1.5.0<br>
> This looks like a tipo error. (this is not the function here but the constraint text in pg_constraint)<br>
<br>
</div>I think the st_ prefix is now required,<br>
<div class="im"><br>
> 2) I have a second problem with pg_constraint table and the "consrc" field.<br>
> Most of time I have something like :<br>
> "(public.srid(the_geom) = 27492)"<br>
> and not (as expected by the function probe_geometry_columns()) :<br>
> "(srid(the_geom) = 27492)"<br>
<br>
</div>This was previously an issue if you installed postgis into other than the public schema. The public schema reference was in a few locations, so you need to search it out in the function defs and remove it and recreate the function if you don't want to upgrade.<br>
<br>
I have upgraded a number of databases to 1.5 from 1.4 and it seems to have fixed it... but I have also mucked it by not changing the search_path prior to running the upgrade, leaving me with multiple postgis function definitions!<br>
<br>
cheers<br>
<font color="#888888"><br>
Ben<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br>