You are not logged in.
Pages: 1
Archers,
What is your experience. I have been using MySQL for a long time, and have had a few friends "giving" their advice on the matter. It seems many of them think postgres is far supirior.
I mainly use the database for simple storage of data for web apps (php and ruby). I don't think I really need stored procedures (pl/sql), don't use indexing very much. The main things I need are SQL conformity (doh!), atomic commits/transaction, etc. Just the normal stuff you would think of using a db for.
Both seem to have nice web front ends, from the ubiquitous phpmyadmin to phppgadmin.
Ok. Opinions..?
*sprays flame retardent on the topic before hand*
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
I don't have a huge amount of experience with either, but I prefer Postgresql. It seems to be more similar to large commercial DBMS's I have worked with.
Offline
I say sqlite
To err is human... to really foul up requires the root password.
Offline
I'm not very experienced either, but I think for your needs, it doesn't really matter, which one to use. DB-Gurus tend to call mySQL "nothing more than an interface to the filesystem", ignore Postgres and use Oracle
If you want to run a mission-critical DB-Server, I'd stick with Postgres, because of the Transaction-Support, which may be quite important in such cases.
A nice feature in any case are the subselects in Postgres. MySQL doesn't support this yet, so this may be kind of a "killer-criteria"...
But don't forget: never change a running system. If you run mySQL right now and you are happy with it, then why change?
"I watched a snail crawl along the edge of a straight razor. That's my dream. That's my nightmare." - (Kurtz, Apocalypse Now)
Offline
If you want to run a mission-critical DB-Server, I'd stick with Postgres, because of the Transaction-Support, which may be quite important in such cases.
A nice feature in any case are the subselects in Postgres. MySQL doesn't support this yet, so this may be kind of a "killer-criteria"...
Actually, I believe mysql 4.1.x has support for both now.
Transactions
Using the InnoDB or Berkeley DB (BDB) storage engines, the MySQL database server supports transactions. The InnoDB storage engine also supports foreign key constraints.
Expanded support for subqueries
Subqueries allow you to use the result of one query as a component of a larger query. The MySQL server already supports some forms of this technique, such as INSERT INTO ... SELECT ..., and this support will be expanded in version 4.1 to include nested SELECT queries, which is one of the most-requested features from our users.
Offline
*rubs hands together*
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
I'm no expert, and only have experience with MySQL. But it really depends on the software you'll be using. If the software support both, maybe you should go with PostgreSQL since it have some advanced features not available in MySQL. In the old days MySQL was known for its speed, but don't know which is faster, or use less resources right now.
Offline
I've changed my mind - I say mysql.
why?
it's swedish
To err is human... to really foul up requires the root password.
Offline
i have never used postgres. i tried to get it working once but couldn't and i could not find any decent docs. i find mysql satisfactory and it is widely support by alot of software unlike postgres. at least in my limited experience.
mysql's online nmanual is very comprehensive so any user should be quite good with it in a short time.
AKA uknowme
I am not your friend
Offline
From a programming API's point of view, Postgresql has a richer API, as it supports things the Mysql one doesn't.
From a user's point of view I have no idea, never used them.
Offline
postgres is the way to go.
Have used and left mysql.
Mysql was good during my learning days.
Offline
MySQL 5 is supposed to really be kickass.
Offline
I have also now moved from mysql to postgres. I find postgres to be...simply awesome!
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
MySQL is said to be superior when it comes to many small queries, while postgres is particulary good at large queries. Personally, I do not notice any significant difference in performance between postgreSQL 8.x and MySQL 4.x.x.
Support for views, safe transactions, subqueries, foreign keys, etc will no longer be an advantage of postgres, as MySQL 5.x (and 4.1 also, to some extent) will also support these features.
The greatest advantage that postgres has over MySQL, is its license and its independance, I think. For example, the most popular and advanced storage engine in MySQL has just been bought out by Oralce, which might become somewhat problematic for mysql in the future.
For mission critical stuff, I would choose for postgres, because they are probably the most mature when it comes to the aforementioned features.
For other stuff, I'm not sure. If you want to run it on a shared host, mysql is probably the only option. Also, mysql might just prove to be faster for you and provide all the features you need. But then again, mysql's dependence on innoDB, for example, might prove to be a huge problem.
Offline
I have read that mysql performance vs postgres performance as far as query speed..has closed the gap quite a bit. I would say that the difference is likely negligible at this point (although that is based soley on firsthand experience from my peers. I have no statistical information to back that up).
For me though, the biggest issue is with how mysql handles failures and edge cases.
If you attempt to add a 200 char data element to a column set as 100 chars, in mysql...only the first 100 chars are added. the rest are discarded. This 'silent data munging' is something i am no longer comfortable with.
I choose to go with a *perhaps* slower database engine (postgres) that places a higher importance on maintaining data consistency, than a *perhaps* faster database engine that places more empasis on raw query speed.
Lisence issues are concerns as well. With the recent fuss over the, arguably blown out of proportion, deal that mysql has entered into with SCO, I felt it was a good time to migrate my own development efforts on a platform that I felt more comfortable supporting.
Hopefully, for the rest of the community's sake, mysql continues to get better. It is the predominantly supported hosting db out there.
Redhat did choose postgres to base their 'redhat database' product on though. They must know something about something. lol
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
I use the PostGis extention for PostgreSQL to store geospatial entities and do geospatial operations/queries.
I find the Postgre envronment much more pleasant to work with, and query results seem quicker. One thing that is strange though--Postgre's storage on disk occupies much more space than Mysql.
Offline
Pages: 1