Skip site navigation (1) Skip section navigation (2)

Re: Why is PGSQL better than MySQL

From: Neil Saunders <n(dot)j(dot)saunders(at)gmail(dot)com>
To: "Pedro B(dot)" <pedro(dot)borracha(at)netcabo(dot)pt>
Cc: John Mohr <jtmohr(at)healthconresources(dot)com>, pgsql-php(at)postgresql(dot)org
Subject: Re: Why is PGSQL better than MySQL
Date: 2005-12-13 10:13:45
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php
Agreed. You can't argue with a well executed benchmark. All I'd say is
be careful not just the same simple select statement over and over
again - Do a variety of both simple and complex queries. And always
use InnoDB as compared to MyISAM (otherwise you're not comparing
apples with apples). The biggest pro (imho) that PostgreSQL has over
MySQL is its locking mechanism. PostgreSQL uses MVCC, which greatly
improves concurrency.

For a list of "Gotchas" take a look at these:

Also stumbled across this:

On 12/13/05, Pedro B. <pedro(dot)borracha(at)netcabo(dot)pt> wrote:
> On Mon, 2005-12-12 at 20:02 -0600, John Mohr wrote:
> > But does anyone know if there is a quasi-categorical comparison of the
> > two so that I could speak with more conviction other than "I know it's
> > better".
> I've been involved in that comparison at work, and after some boring
> theoretical discussions, i once turned to my CTO and said:
> "Do a test. On the same machine, do a script that executes 50.000
> inserts, OR any other 50.000 SQL operations you want, and benchmark the
> results".
> He did, and Postgres immediately got another die-hard fan.
> The facts spoke more clearly than i could ever do, with just words.
> Nowadays, he is even more "defensive" of PGSQL over MySQL than i am.
> \\pb
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

In response to

pgsql-php by date

Next:From: David RogersDate: 2005-12-13 14:36:12
Subject: Re: Why is PGSQL better than MySQL
Previous:From: Pedro B.Date: 2005-12-13 02:24:48
Subject: Re: Why is PGSQL better than MySQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group