>what are the differences between postgres and mysql?
See this table, from MySQL's own documentation, showing features in PostgreSQL, and when they are
planned for MySQL:
Code:
PostgreSQL | MySQL version
------------------------|---------------
Subselects | 4.1
Foreign keys | 4.1 (3.23 with InnoDB)
Views | 5.0
Stored procedures | 5.0
Triggers | 5.0
Unions | 4.0
Full join | 4.1
Constraints | 4.1 or 5.0
Cursors | 4.1 or 5.0
R-trees | 4.1 (for MyISAM tables)
Inherited tables | Not planned
Extensible type system | Not planned
> which is easier to work with, has support and is faster or more stable?
They are both quite stable. MySQL of course has a shorter learning curve, because it lacks many features that you have to learn with other DBMS's.
> Basically the pros and cons and differences between MySQL and Postgres.
They are in FAQ699-1751, but here is the nutshell version:
MySQL:
- easily deployed, runs on Windows also
- quick learning curve (mainly because it lacks many SQL features)
- flexible (database structure can be altered more easily)
- fast performance for read-intensive sites
- lacks data integrity and logical manipulation features needed in complex applications
PostgreSQL:
- includes almost all logical manipulation features available in larger commercial DBMS's, supports internal programming with stored procedures
- Advanced abilities, such as user-defined types, etc...
- fast performance (when tuned properly)
- scaleable, especially for concurrent read/write ability
- ANSI standard SQL--ports much more easily to larger commercial DBMS's such as Oracle.
- table design changes on an active database can be problematic (better support is under way)
- slightly more complicated to install (not much)
- runs only on Unix platforms (A native Windows port is under way)
-------------------------------------------
Big Brother: "War is Peace" -- Big Business: "Trust is Suspicion"
(