Super!<div>I didn't realize that the geometry_column view could be edited...</div><div><br></div><div>So</div><div>I added at the end of the view sql statement:</div><div><br></div><div>AND c.relname not like 'entities'</div>
<div><br></div><div>that was converted by the system to</div><div><br></div><div>AND c.relname !~~ 'entities'::text</div><div><br></div><div><br></div><div>Then in qgis I had to specify that it must look only in geoetry_columns table and the table entities disappeared!</div>
<div><br></div><div>Thnx very, very much!</div><div><br></div><div>Pietro</div><div><br><br><div class="gmail_quote">2012/10/22 Francois Hugues <span dir="ltr"><<a href="mailto:hugues.francois@irstea.fr" target="_blank">hugues.francois@irstea.fr</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div><div class="im">
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>Your view is defined by a sql select so you should try
to leave this select as is except for the where clause where you could add
something like : and c.relname not like 'your_table_name'</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>I tried it with one of my table and this was ok, the
table disappeared from the geometry_columns view</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span></span></font> </div>
</div><div dir="ltr" align="left"><font color="#0000ff" face="Arial"><span>Hugues.</span></font></div>
<div><font color="#0000ff" face="Arial"></font> </div><font color="#0000ff" face="Arial"></font><br>
<div dir="ltr" lang="fr" align="left">
<hr>
<font face="Tahoma"><b>De :</b>
<a href="mailto:postgis-users-bounces@postgis.refractions.net" target="_blank">postgis-users-bounces@postgis.refractions.net</a>
[mailto:<a href="mailto:postgis-users-bounces@postgis.refractions.net" target="_blank">postgis-users-bounces@postgis.refractions.net</a>] <b>De la part de</b>
Pietro Rossin<br><b>Envoyé :</b> lundi 22 octobre 2012
11:40<br><b>À :</b>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><div class="im"><br><b>Objet :</b> Re: [postgis-users]
How to make some geometry column visible to Qgis<br></div></font><br></div><div class="im">
<div></div>Hello Hugues
<div>in my database I have both views and a main table on which these views pick
data from.</div>
<div>All of them have their own geometry column registered into the geometry
column set by postgis</div>
<div><br></div>
<div>My problem is that the main table (a huge one with mixed geometry data
type) has its own geometry column.</div>
<div>When qgis starts the connection to this db automatically looks into the
geometry column set and find the geom.column relative to the main table, so it
searches that table for the geometry type and take a lot of time to do
it...</div>
<div><br></div>
<div>How can I hide this geometry column?<br><br>Thnx</div>
</div><div>Pietro<br><br>
<div class="gmail_quote">2012/10/22 Francois Hugues [via PostGIS] <span dir="ltr"><<a href="http://user/SendEmail.jtp?type=node&node=5000687&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span><div>
<div class="h5"><br>
<blockquote style="BORDER-LEFT:#cccccc 2px solid;PADDING-BOTTOM:0px;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1em;PADDING-RIGHT:1em;PADDING-TOP:0px" class="gmail_quote">
<div dir="ltr" align="left"><span style="FONT-FAMILY:Arial;FONT-SIZE:10pt"><span>Hello</span></span></div>
<div dir="ltr" align="left"><span style="FONT-FAMILY:Arial;FONT-SIZE:10pt"><span></span></span> </div>
<div dir="ltr" align="left"><span style="FONT-FAMILY:Arial;FONT-SIZE:10pt"><span>
<div>
<div><span>"</span>This because I cannot remove the entities geometry column
unless I remove the entity table first.</div>
<div>And if I don't remove (or make invisible to qgis if possible) the
entities geometry column it slow down the qgis connection.<span>"</span></div>
<div><span></span> </div></div>
<div>
<div><span><font color="#0000ff">Did you try to edit the view, using the where
clause to exclude the tables you don't want to be seen by postgis
?</font></span></div>
<div><span><font color="#0000ff"></font></span> </div>
<div><span><font color="#0000ff">Hugues.</font></span></div></div></span></span></div>
<div> </div><br>
<div dir="ltr" lang="fr" align="left">
<hr>
<font face="Tahoma"><b>De :</b> <a href="http://user/SendEmail.jtp?type=node&node=5000686&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a> [mailto:<a href="http://user/SendEmail.jtp?type=node&node=5000686&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>] <b>De la part
de</b> Pietro Rossin
<div><br><b>Envoyé :</b> lundi 22 octobre 2012
09:25<br></div><b>À :</b> <a href="http://user/SendEmail.jtp?type=node&node=5000686&i=2" rel="nofollow" link="external" target="_blank">[hidden
email]</a><br><b>Objet :</b> Re: [postgis-users] How to make some
geometry column visible to Qgis<br></font><br></div>
<div>
<div></div>DELETE FROM geometry_columns WHERE f_table_name = 'puntigronda';
<div><br></div>
<div>Query returned successfully: 0 rows affected, 0 ms execution
time.</div></div>
<div><br>
<div>INSERT INTO geometry_columns (f_table_catalog,f_table_schema,
f_table_name, f_geometry_column, coord_dimension, srid,type)Â </div>
<div>
<div>Â VALUES ('','', 'puntigronda', 'the_geom', 3,
3004,'POINTS');</div>
<div><br></div>
<div>Query returned successfully: 0 rows affected, 16 ms execution time.</div>
<div><br></div>
<div>select relkind from pg_class where relname = 'geometry_columns';</div>
<div><br></div>
<div>returns:</div>
<div>"v"</div>
<div><br></div>
<div>What is this?</div>
<div><br></div>
<div>By the way</div>
<div>If my technique works, is it still better to explode the "entities" table
in one of this cases:</div>
<div><br></div>
<div>a) single layers</div>
<div>b) same kind of geometries</div>
<div><br></div></div>
<div>in both cases table permanent.</div>
<div>
<div><br></div>
<div>This because I cannot remove the entities geometry column unless I remove
the entity table first.</div>
<div>And if I don't remove (or make invisible to qgis if possible) the
entities geometry column it slow down the qgis connection.</div>
<div><br></div>
<div>Thanks for your help</div>
<div>Pietro</div>
<div><br></div></div>
<div class="gmail_quote">2012/10/22 Sandro Santilli [via PostGIS] <span dir="ltr"><<a href="http://user/SendEmail.jtp?type=node&node=5000685&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>></span><br>
<blockquote style="BORDER-LEFT:#cccccc 2px solid;PADDING-BOTTOM:0px;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1em;PADDING-RIGHT:1em;PADDING-TOP:0px" class="gmail_quote">
<div>
<div>On Mon, Oct 22, 2012 at 08:40:07AM +0200, Pietro Rossin wrote:
<br><br></div>
<div>> DELETE FROM geometry_columns WHERE f_table_name = 'puntigronda';
<br></div>
<div>... <br>> Is there something wrong? <br><br>What's wrong is that the
"geometry_columns" table should be a view, <br>in PostGIS-2.0. If it is a
view, your DELETE and INSERT and UPDATE <br>to it should have no effect.
<br><br>Can you verify this first ? <br>The DELETE/INSERT/UPDATE commands
all return the number of affected <br>rows. If PostGIS is correctly
installed you should alwyas get 0, <br>no matter what you try to
insert/delete/update. <br><br>Also check: <br>select relkind from pg_class
where relname = 'geometry_columns'; <br><br></div></div>
<div>--strk; <br><br>
<div>Â <a href="http://www.cartodb.com" rel="nofollow" link="external" target="_blank">http://www.cartodb.com</a>Â - Map,
analyze and build applications with your data <br><br>Â Â
        Â
         ~~ <a href="http://strk.keybit.net" rel="nofollow" link="external" target="_blank">http://strk.keybit.net</a>Â
<br><br></div>_______________________________________________
<br>postgis-users mailing list <br></div>
<div><a href="http://user/SendEmail.jtp?type=node&node=5000684&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a> <br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" rel="nofollow" link="external" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br><br>
<hr color="#cccccc" size="1" noshade>
<div style="FONT:12px tahoma,geneva,helvetica,arial,sans-serif;COLOR:#444">
<div>
<div style="FONT-WEIGHT:bold">If you reply to this email, your message will
be added to the discussion below:</div></div><a href="http://postgis.17.n6.nabble.com/How-to-make-some-geometry-column-visible-to-Qgis-tp5000570p5000684.html" rel="nofollow" link="external" target="_blank">http://postgis.17.n6.nabble.com/How-to-make-some-geometry-column-visible-to-Qgis-tp5000570p5000684.html</a>
</div>
<div style="MARGIN-TOP:0.4em;FONT:11px/1.5em tahoma,geneva,helvetica,arial,sans-serif;COLOR:#666">To
unsubscribe from How to make some geometry column visible to Qgis, <a rel="nofollow" link="external">click here</a>.<br><a style="FONT:9px serif" href="http://postgis.17.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" link="external" target="_blank">NAML</a>
</div></div></blockquote></div><br></div>
<div><br>
<hr align="left" width="300">
View this message in context: <a href="http://postgis.17.n6.nabble.com/How-to-make-some-geometry-column-visible-to-Qgis-tp5000570p5000685.html" rel="nofollow" link="external" target="_blank">Re: How to make some geometry
column visible to Qgis</a><br>Sent from the <a href="http://postgis.17.n6.nabble.com/PostGIS-User-f3516033.html" rel="nofollow" link="external" target="_blank">PostGIS - User mailing list archive</a> at
Nabble.com.<br><br></div>
<div>_______________________________________________
<br>postgis-users mailing list <br><a href="http://user/SendEmail.jtp?type=node&node=5000686&i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a> <br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" rel="nofollow" link="external" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br><br>
<hr color="#cccccc" size="1" noshade>
</div>
<div style="FONT:12px tahoma,geneva,helvetica,arial,sans-serif;COLOR:#444">
<div>
<div style="FONT-WEIGHT:bold">If you reply to this email, your message will
be added to the discussion below:</div></div><a href="http://postgis.17.n6.nabble.com/How-to-make-some-geometry-column-visible-to-Qgis-tp5000570p5000686.html" rel="nofollow" link="external" target="_blank">http://postgis.17.n6.nabble.com/How-to-make-some-geometry-column-visible-to-Qgis-tp5000570p5000686.html</a>
</div>
<div>
<div>
<div style="MARGIN-TOP:0.4em;FONT:11px/1.5em tahoma,geneva,helvetica,arial,sans-serif;COLOR:#666">To
unsubscribe from How to make some geometry column visible to Qgis, <a rel="nofollow" link="external">click here</a>.<br><a style="FONT:9px serif" href="http://postgis.17.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" link="external" target="_blank">NAML</a>
</div></div></div></blockquote></div></div></div><br></div><div><div class="h5"><br>
<hr align="left" width="300">
View this message in context: <a href="http://postgis.17.n6.nabble.com/How-to-make-some-geometry-column-visible-to-Qgis-tp5000570p5000687.html" target="_blank">Re:
How to make some geometry column visible to Qgis</a><br>Sent from the <a href="http://postgis.17.n6.nabble.com/PostGIS-User-f3516033.html" target="_blank">PostGIS - User
mailing list archive</a> at Nabble.com.<br></div></div></div>
<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>
<br></blockquote></div><br></div>