On Thu, Feb 28, 2008 at 10:30 AM, Marcus Wolschon <<a href="mailto:marcus@wolschon.biz">marcus@wolschon.biz</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Andy Robinson (blackadder) schrieb:<br>
<div class="Ih2E3d">|> The need for area-level revert is known and understood, we just never<br>
|> have enough programmers to do all the funky things that need doing...<br>
|><br>
| Indeed, though to help the original user out perhaps we can have a<br>
concerted<br>
| effort to get any deleted data returned. needs someone with a bit of<br>
time to<br>
| investigate properly. Have therefore copied to dev.<br>
<br>
<br>
</div>Sounds like we could need a stored procedure to undelete everything a<br>
~ given user deleted between 2 given timestamps.<br>
</blockquote><div><br>In this case, unless its accidental, it would be wise to revert *all* edits by the user responsible.<br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What does our table-structure look like?<br>
<br>
I am thinking of something like:<br>
* undelete all nodes<br>
* then select all deleted ways where all their way_nodes have existing nodes<br>
* undelete all way_nodes of these ways<br>
* undelete all these ways<br>
* 3x select all deleted relations where all their nodes, ways and<br>
~ relations exist and undelete them<br>
(done 3x to support relations relating to relations. We do not have<br>
~ [possibly infinite] loops or recursion in stored procedures)<br>
<br>
Marcus<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.6 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iD8DBQFHxo1cf1hPnk3Z0cQRAmC9AKDSPxZ8+/S+Ks2TdINaXnRsvEehvwCfUDi9<br>
EqqcL8Sn+VP1/5fuLWESIeU=<br>
=u3lY<br>
-----END PGP SIGNATURE-----<br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev" target="_blank">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br>
</blockquote></div><br>