<p dir="ltr">Hello Pedro,</p>
<p dir="ltr"> according to Fred Lehoney (I haven't test it) the latest version of postgres alows to edit simple views (that is, simple selects on a single table, with no aggregate functions, or functions around fields).</p>
<p dir="ltr">But, if you are using 9.2 or you have any of those conditions, you can always use triggers to redirect your view edits to the original tables.</p>
<p dir="ltr">I don't have an example now, but I can give you one tomorrow. </p>
<p dir="ltr">Best regards,<br>
Abraço, </p>
<p dir="ltr">Alexandre Neto</p>
<div class="gmail_quote">Em 25/11/2014 13:06, "Sergio Gollino" <<a href="mailto:gollinosergio@gmail.com">gollinosergio@gmail.com</a>> escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>That's not a bug. <br><br>You can't insert data on a view, because a view, it's just a select of something (one or more other tables) so, if you have to insert something inside a view, you have to insert it in the original table. <br><br></div>Regards<br><br></div>Sergio<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-25 11:20 GMT+01:00 Pedro <span dir="ltr"><<a href="mailto:pedro.ferro@gmail.com" target="_blank">pedro.ferro@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
When I try to update or insert data which are in Postgis Views is not<br>
possible (they all have write permissions and if I do the some action at<br>
QGIS works).<br>
<br>
<<a href="http://osgeo-org.1560.x6.nabble.com/file/n5174737/Capturar.png" target="_blank">http://osgeo-org.1560.x6.nabble.com/file/n5174737/Capturar.png</a>><br>
<br>
<br>
When I do the same action on Postgis Tables it works as expected.<br>
<br>
<br>
P.S. - I open an Issue at Lizmap GitHub because it seems like a bug<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Lizmap-can-t-insert-update-data-in-PostGis-Views-tp5174737.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Lizmap-can-t-insert-update-data-in-PostGis-Views-tp5174737.html</a><br>
Sent from the Quantum GIS - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr"><span style="font-family:courier new,monospace"><font size="1">Sergio Gollino</font><br><font size="1"><br></font></span><p><span style="font-family:courier new,monospace"><font size="1">Questo
 messaggio, comprensivo di eventuali allegati, è ad uso esclusivo del 
destinatario e potrebbe contenere  informazioni riservate; se è stato 
recapitato per errore ci scusiamo per l'accaduto e Vi invitiamo 
cortesemente a darcene notizia provvedendo alla sua distruzione.<span></span></font></span></p><span style="font-family:courier new,monospace"><font size="1">Vi
 ricordiamo che la diffusione, l'utilizzo e/o la conservazione dei dati 
ricevuti per errore costituiscono violazione alle disposizioni del 
D.Lgs. n. 196/2003 "Codice in materia di protezione dei dati personali".</font></span><br></div></div>
</div>
<br>_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></blockquote></div>