Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: PostgreSQL or MySQL?
PostPosted: Fri Nov 18, 2005 2:09 pm 
Offline
Senior Newbie
User avatar

Joined: Thu May 12, 2005 4:38 pm
Posts: 9
Website: http://www.mylesbraithwaite.com
WLM: mylesbraithwaite@hotmail.com
Yahoo Messenger: mylesab2002
AOL: MylesAB
Location: Toronto, Ontario, Canada
Hello I know that this isn't that much realted to this forum but I just wanted to ask the question what should I use PostgreSQL or MySQL? I am looking for relaible speed and in a small package. I might condsider SQLite but would have to be given a really good reson.


Top
   
 Post subject:
PostPosted: Fri Nov 18, 2005 2:59 pm 
Offline
Senior Member

Joined: Sat Dec 13, 2003 12:39 pm
Posts: 98
It's funny how people become impassioned about their database choices, but here's my 2 cents.

I go for postgresql. I am just biased against mysql, though it is very popular and works for many people. I hear rumors of cases where mysql lost transactions under certain situations, though I hear that was fixed long ago. It still makes me not quite trust it, though. Mysql is also not quite as free as postgres. I hear mysql is very easy to install and maintain compared to postgres, but I still find postgres to be very easy to install in the scheme of things. I hear mysql is faster for low numbers of users and low query rates, and postgres is faster for high numbers of simultaneous users, though the benchmarks I've seen are kinda old. Also postgres seems to have always been ahead in terms of the capabilities of its query language, and other various transaction management strategies and database standards, though I forget all the alphabet soup of acronyms that come up.

I've used postgres on a linode 64 and 128 and the speed is fine for my needs. At first I thought there was a problem consuming IO tokens during routine maintenance, but it turned out I had a huge database I'd forgotten about that was causing it. And postgres has made routine maintenance better lately and I haven't seen that problem any more.

Another factor is that already existing open source software is most likely to work with mysql over anything else. Postgres might be #2, and other databases are much less supported.

To be honest, that is the only thing about mysql that appeals to me. It's always a pain to have to reconfigure software that comes with mysql support as the deault and is most tested with mysql. Otherwise, the speed differences are unnoticable, and I am familiar enough with postgresql that I could install it in my sleep. I'll take the rock solid stability and power of postgres over the slightly faster, easier to use mysql any day.


Top
   
 Post subject: I prefer postgres
PostPosted: Thu Dec 22, 2005 4:14 pm 
Offline
Senior Newbie

Joined: Thu Dec 22, 2005 4:09 pm
Posts: 5
I'm a fan of postgres. I just don't see any reason to use a weaker system, although mysql is improving quickly, Postgres has always been way ahead of the game.


Top
   
 Post subject:
PostPosted: Sun Dec 25, 2005 2:17 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
Small site, speed a must, use SQLite, then MySQL, otherwise use PostgreSQL


Top
   
 Post subject:
PostPosted: Thu Dec 29, 2005 12:09 am 
Offline
Junior Member

Joined: Wed May 04, 2005 9:08 pm
Posts: 24
Website: http://xcski.com/blogs/pt/
Location: Rochester NY
OverlordQ wrote:
Small site, speed a must, use SQLite, then MySQL, otherwise use PostgreSQL


Does SQLite do transactions? How about subqueries?


Top
   
 Post subject:
PostPosted: Thu Dec 29, 2005 11:47 pm 
Offline
Newbie

Joined: Sat Jul 16, 2005 10:29 am
Posts: 3
Location: Marietta, GA
ptomblin wrote:
OverlordQ wrote:
Small site, speed a must, use SQLite, then MySQL, otherwise use PostgreSQL


Does SQLite do transactions? How about subqueries?


I could easily answer, then explain my answers (I had the same questions when I first heard of it). Why not take a look at what it does not support under SQL92:

http://www.sqlite.org/omitted.html

:D

HTH -- Mark


Top
   
 Post subject:
PostPosted: Sat Dec 31, 2005 5:08 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
ptomblin wrote:
OverlordQ wrote:
Small site, speed a must, use SQLite, then MySQL, otherwise use PostgreSQL


Does SQLite do transactions? How about subqueries?


MySQL is the least ANSI-SQL compliant Database in the marketplace. MySQL isn't even ACID, so you can't say MySQL 'supports' transactions.

On mysql do this for example:

Code:
create table T (a int, b int);
insert into T values(1, 2);
update T set a=b, b=a;


What is the result? Well, on most REAL database the values whould be swapped: A=2, B=1.
On MySQL unfortunately the result is: A=2, B=2.


Top
   
 Post subject:
PostPosted: Sat Dec 31, 2005 7:58 pm 
Offline
Senior Member

Joined: Sat Dec 13, 2003 12:39 pm
Posts: 98
Man, with all the LAMP people around, I'm really surprised nobody's come to the defense of mysql.

I'd really suggest testing postgresql with your config. It's really not bad on a low end linode, and will give you plenty of room to grow.


Top
   
PostPosted: Sat Jan 07, 2006 11:46 am 
Offline

Joined: Mon Mar 29, 2004 10:12 pm
Posts: 1
OverlordQ wrote:
Small site, speed a must, use SQLite, then MySQL, otherwise use PostgreSQL


FWIW, the primary development site for SQLite, http://www.sqlite.org/ is hosted by linode.com. It is a linode160 on host43.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group