<div dir="ltr"><div><div><div>That would mean <br></div>_create a function bollean table_exists(qualified_tablename)<br></div>and use it to safeguard (if exist, no change, else, skip) in all the postgis topology functions.<br>
<br></div>Not hard, but a lot's of impacted functions.<br><br>Cheers,<br>Rémi-C<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/3 Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Dec 03, 2013 at 06:19:13PM +0100, Rémi Cura wrote:<br>
> Yep, but the table with the topogeometry column was deleted,<br>
> so no way to use classical function.<br>
<br>
</div>We could make the DropGeometryColumn function tolerant<br>
to the fact that the column isn't there anymore while<br>
still having it cleanup topology.layer. Ticket and patch ?<br>
<div class="im"><br>
> It is somehow worrisome that the system can finish in such a lock (I agree<br>
> it is not a good practice to delete all table in a schema where there is<br>
> topology).<br>
> But, you can't prevent people from wrecking everything ? ;-)<br>
<br>
</div>There seems to be disabled support for reducing those cases:<br>
<a href="https://github.com/postgis/postgis/blob/2.1.0/topology/topology.sql.in#L663-L668" target="_blank">https://github.com/postgis/postgis/blob/2.1.0/topology/topology.sql.in#L663-L668</a><br>
<div class="HOEnZb"><div class="h5"><br>
--strk;<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>