The main problem is version control of the database structure.
The standard mysqldump and pg_dump utilities do not create very good version control files.
Dump commands issue dump files with auto-increment values, TOC entries, etc. Because these objects are subject to constant change, it always creates huge difference files.
PostgreSQL diff
-- --- TOC entry 2630 (class 0 OID 0) +-- TOC entry 2549 (class 0 OID 0) -- Dependencies: 6 -- Name: SCHEMA adm; Type: COMMENT; Schema: -; Owner: admin @@ -61,5 +61,5 @@
Mysql diff
--- Dump completed on 2010-07-20 14:33:44 +-- Dump completed on 2010-08-11 8:59:39 Index: /db.sql =================================================================== --- /db.sql (revision 1274) +++ /db.sql (revision 1317) @@ -36,5 +36,5 @@ `message` text, PRIMARY KEY (`id`) -) ENGINE=MyISAM AUTO_INCREMENT=21122 DEFAULT CHARSET=utf8; +) ENGINE=MyISAM AUTO_INCREMENT=23730 DEFAULT CHARSET=utf8;
Any suggestions / links / utilities on the best version control method are welcome!
Thanks.
database mysql svn versioning postgresql
Igor
source share