Hello all!<br><br>I´ve been trying to help the postgis community by building this type of feature. This was asked in trac, as shown here:<br><a href="http://trac.osgeo.org/postgis/ticket/180">http://trac.osgeo.org/postgis/ticket/180</a><br>
<br>Well, i came up with a solution (check v03.sql) that will create some functions to help create and manage these historic tables.<br><br>When you build a historic table the monitoring begins. All table fields are monitored including geometry, making it possible to insert the historic records to any GIS software. Some indexes are created now too, but i´m not sure how useful they will be.<br>
<br>This is a work in progress, so i appreciate if any of you can take a look and evaluate the current code/features.<br><br>First, run the .sql file to your database<br>Second, run the following command: select build_history_table(); This will create a simple table that acts like a geometry_columns table, keeping records about all historic tables created; (im aware of the names of the functions, this will change)<br>
<br>After that you ran the commando above, you are ready to use the main function create_history_table(schema_name,table_name,geometry_field_name). This will set up the historic table for the declared table in the function and all the rules necessary to maintain these records. I tested this, but not in a extensive manner.<br>
<br>Anyway, i would like your input, comments, critics and suggestions of other features. For now i'm creating functions to drop historic tables and tweaking the indexes creation on the database.<br><br>Please, tell me what you think and especially if you find any bugs.<br>
<br>Thanks<br><br>George<br clear="all"><br>-- <br>George R. C. Silva<br>Sigma Consultoria<br><br>Desenvolvimento em GIS<br><a href="http://www.consultoriasigma.com.br">www.consultoriasigma.com.br</a><br><a href="http://www.sigmaconsultoria.blogspot.com">www.sigmaconsultoria.blogspot.com</a><br>