<div class="gmail_quote">On Wed, Aug 29, 2012 at 5:46 PM, Andres Freund <span dir="ltr"><<a href="mailto:andres@2ndquadrant.com" target="_blank">andres@2ndquadrant.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Two things:<br>
* the geometry_columns table is not a table anymore but a view of the postgres<br>
catalogs<br></blockquote><div>Great! I didn't know that yet. It must derive the info from the constraints then.<br>So that means you can just create the column with standard DDL, and there is no more redundant info. Nice :)<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* extensions (9.1+, used by postgis 2 onwards) can declare configuration<br>
tables now, so even if you would still need a configuration table it would get<br>
dumped in a schema only dump<br></blockquote><div>That's really cool, advanced stuff. It's interesting that the functions still reside in public, but people probably did spend a few thoughts on that. <br>(why not a separate catalog with all the functions and types etc? hmz maybe because you'd need to change the search_path, which is in postgresql.conf)<br>
I'll look into the typemod stuff further.<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br></blockquote></div><br>On Wed, Aug 29, 2012 at 6:02 PM, Tom Lane <span dir="ltr"><<a href="mailto:tgl@sss.pgh.pa.us" target="_blank">tgl@sss.pgh.pa.us</a>></span> wrote:<br clear="all">>if postgis needs some info in a special table geometry_columns,<br>

>that should be handled by pg_dump dumping and restoring that table too<br><br>Well, pg_dump -s doesn't dump the data, so it would then be missing. But it is actually not data, but functional configuration. That's why creating config tables for extensions (that do get dumped with a schema dump) is awesome stuff! (even if postgis doesn't even use it now)<br>
<br>Thanks for your answers.<br>Cheers,<br><br>WBL<br>-- <br>"Quality comes from focus and clarity of purpose" -- Mark Shuttleworth<br><br>