<div class="gmail_quote">On Thu, Jul 18, 2013 at 11:15 AM, Melin Maxence <span dir="ltr"><<a href="mailto:maxencemelin@yahoo.fr" target="_blank">maxencemelin@yahoo.fr</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:arial,helvetica,sans-serif">Do you know if it is possible to have in the_geom field of one record in a table A, a link (query, hypertext, something else...) to the_geom field of another record in a different table (table B), so that when the geom is modified in the record of the table A, it is automatically modified in the related record of the table B ?</div>

</div></div></blockquote><div><br>It sounds like you need <a href="http://www.postgresql.org/docs/9.2/static/tutorial-fk.html">foreign keys</a>. You can then obtain the geometry using a JOIN as Rich mentioned. Whether A should reference B or vice versa or it's appropriate to have a separate table would depend on the particular situation. That said, this is only the case if the geometries in the table are supposed to be identical. If what you're really after is to clip a geometry or something of that nature, I imagine a topology might be more suited to your needs, but you could potentially accomplish such modification with triggers as Rich mentioned.<br>

</div></div>