<div dir="ltr">Piccole note:<div><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
INSERT INTO test (id, geom4326) VALUES (NULL, MakePoint(42.11, 11.41, 4326));<br>
INSERT INTO test (id, geom4326) VALUES (NULL, MakePoint(42.12, 11.42, 4326));<br>
INSERT INTO test (id, geom4326) VALUES (NULL, MakePoint(42.13, 11.43, 4326));<br>
INSERT INTO test (id, geom4326) VALUES (NULL, MakePoint(42.14, 11.44, 4326));<br>
INSERT INTO test (id, geom4326) VALUES (NULL, MakePoint(42.15, 11.45, 4326));<br></blockquote><div><br></div><div>Intendevi scrivere</div><div>INSERT INTO test (*geom3003*, geom4326) VALUES (NULL, MakePoint(42.15, 11.45, 4326));<br>
</div><div>?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
ma a questo livello NEW.geom3003 vale sempre NULL (valore iniziale assegnato<br>
esplicitamente dalla INSERT), e quindi il valore correttamente assegnato<br>
precedentemente da "ins_geom4326" viene sovrascritto e finisce che comunque<br>
qua ci trovremo un bel NULL, che finisce definitivamente nello Spatial Index<br></blockquote><div><br></div><div>conseguenza naturale e inevitabile del fatto che la catena dei trigger è depth-first.</div><div>Analisi degli effetti non scantata e decisamente utile, grazie Sandro!</div>
<div><br></div><div>giovanni<br></div></div><div dir="ltr"></div>
</div></div>