<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I foubd this an unfortunately ambiguous name.<br><br>it doesn't populate geometry columns so much as update the geometry_columns table.<br><br>But irrespective of the name, it is nice to have :-)<br><br><br>Cheers<br><br>  Brent Wood<br><br>--- On <b>Thu, 5/19/11, Ben Madin <i><lists@remoteinformation.com.au></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Ben Madin <lists@remoteinformation.com.au><br>Subject: Re: [postgis-users] how to keep geometry_columns in sync with tables and views<br>To: "PostGIS Users Discussion" <postgis-users@postgis.refractions.net><br>Date: Thursday, May 19, 2011, 12:50 PM<br><br><div id="yiv25696554">Ge,<div><br></div><div>Try </div><div><br></div><div>    SELECT Populate_Geometry_Columns();<div><br></div><div><a
 rel="nofollow" target="_blank" href="http://postgis.refractions.net/docs/Populate_Geometry_Columns.html">http://postgis.refractions.net/docs/Populate_Geometry_Columns.html</a></div><div><br></div><div>which promises to truncate the geometry columns table first, then rebuild it.</div><div><br></div><div>cheers</div><div><br></div><div>Ben</div><div><br></div><div><br></div><div><br><div><div>On 18/05/2011, at 8:05 PM, G. van Es wrote:</div><br class="yiv25696554Apple-interchange-newline"><blockquote type="cite"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">Hi Edward,<br><br>This will not work because this function doesn't do anything with views. Also stale records aren't removed.<br><br>Ge<br><br>--- On <b>Wed, 5/18/11, Edward Mac
 Gillavry <i><<a rel="nofollow" ymailto="mailto:emacgillavry@hotmail.com" target="_blank" href="/mc/compose?to=emacgillavry@hotmail.com">emacgillavry@hotmail.com</a>></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Edward Mac Gillavry <<a rel="nofollow" ymailto="mailto:emacgillavry@hotmail.com" target="_blank" href="/mc/compose?to=emacgillavry@hotmail.com">emacgillavry@hotmail.com</a>><br>Subject: Re: [postgis-users] how to keep geometry_columns in sync with tables and views<br>To: <a rel="nofollow" ymailto="mailto:postgis-users@postgis.refractions.net" target="_blank" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>Date: Wednesday, May 18, 2011, 4:57 AM<br><br><div id="yiv25696554">

<style><!--
#yiv25696554  .yiv25696554hmmessage P
{
margin:0px;padding:0px;}
#yiv25696554  .yiv25696554hmmessage
{
font-size:10pt;font-family:Tahoma;}
--></style>
Hi Ge,<br><br>You may want to check Probe_Geometry_Columns (<a rel="nofollow" target="_blank" href="http://postgis.refractions.net/docs/Probe_Geometry_Columns.html">http://postgis.refractions.net/docs/Probe_Geometry_Columns.html</a>).<br><br>Kind regards,<br><br>Edward<br><br><br><br><hr id="yiv25696554stopSpelling">Date: Wed, 18 May 2011 04:38:51 -0700<br>From: <a rel="nofollow" ymailto="mailto:gves2000@yahoo.com" target="_blank" href="/mc/compose?to=gves2000@yahoo.com">gves2000@yahoo.com</a><br>To: <a rel="nofollow" ymailto="mailto:postgis-users@postgis.refractions.net" target="_blank" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>Subject: [postgis-users] how to keep geometry_columns in sync with tables   and views<br><br><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size:
 inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">Hi All,<br><br>We have a lot of tables and views updated, or better said, replaced on a daily basis. We have seen that under certain conditions (which are unclear) entries of the geometry_columns table are removed. So a mismatch occurs so now and then resulting in showing either no data or being very slow when an application has to do a table scan to obtain the geometry type.<br><br>What I like to have is a procedure which checks all tables and
 views against the geometry_columns table and makes if necessary the right corrections.<br><br>Before inventing the wheel again, does anyone know if this procedure already exist or knows perhaps another/better way to achieve this? <br><br>Thanks in advance,<br><br>Ge<br><br><br><br><br></td></tr></tbody></table><br>_______________________________________________
postgis-users mailing list
<a rel="nofollow" ymailto="mailto:postgis-users@postgis.refractions.net" target="_blank" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a>
<a rel="nofollow" target="_blank" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a>                                        
</div><br>-----Inline Attachment Follows-----<br><br><div class="yiv25696554plainMail">_______________________________________________<br>postgis-users mailing list<br><a rel="nofollow">postgis-users@postgis.refractions.net</a><br><a rel="nofollow" target="_blank" href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></tbody></table>_______________________________________________<br>postgis-users mailing list<br><a rel="nofollow" ymailto="mailto:postgis-users@postgis.refractions.net" target="_blank" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>http://postgis.refractions.net/mailman/listinfo/postgis-users<br></blockquote></div><br></div></div></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>postgis-users
 mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=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></blockquote></td></tr></table>