<div dir="ltr"><div><div><div><div>I have improved my function. <br><br></div>Now it returns a table containing the schema, table name and column name. You need to use it with<br>SELECT * FROM create_missing_spatial_indexes();<br><br></div>If you would like to only get the informations about missing indexes, there is a new "simulate" parameter.<br>SELECT * FROM create_missing_spatial_indexes(True);<br></div><div><br></div><div>URL : <a href="https://gist.github.com/mdouchin/cfa0e37058bcf102ed490bc59d762042">https://gist.github.com/mdouchin/cfa0e37058bcf102ed490bc59d762042</a><br></div><div><br></div>Cheers,<br></div>MichaĆ«l<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-01 12:10 GMT+01:00 Salvatore Larosa <span dir="ltr"><<a href="mailto:lrssvtml@gmail.com" target="_blank">lrssvtml@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Thank you very much!<br><br><div data-smartmail="gmail_signature">--<br>Sent from my mobile phone</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">Il 01 Dic 2017 12:01 PM, "kimaidou" <<a href="mailto:kimaidou@gmail.com" target="_blank">kimaidou@gmail.com</a>> ha scritto:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div><div><div>Hi users and devs,<br><br></div>I just created a very simple function [1] to create all the missing spatial indexes on your table geometry columns.<br><br></div>It is the 1st version, has no fancy parameter to choose tables or schemas, nor return anything usefull (only notices). <br></div><div><br></div><div>Use it with a simple <br></div><div>SELECT create_missing_spatial_indexes<wbr>();<br></div></div><div><br></div><div>[1] <a href="https://gist.github.com/mdouchin/cfa0e37058bcf102ed490bc59d762042" target="_blank">https://gist.github.com/mdouch<wbr>in/cfa0e37058bcf102ed490bc59d7<wbr>62042</a></div><div><br></div><div>Regards,<br></div>Michael<br></div>
</div><br></div>
<br></div></div>______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br></blockquote></div></div>
</blockquote></div><br></div>