Re: Why is PGSQL better than MySQL

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(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-17 00:35:04
Message-ID: 20051217003504.GF53809@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On Tue, Dec 13, 2005 at 02:24:48AM +0000, Pedro B. 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".

My personal favorite:

CREATE TABLE s(s smallint);
INSERT INTO s VALUES(99999);
SELECT * FROM t;

Seeing what those 3 lines produce is MySQL is enough to convert 50% of
people on the spot (after you tell them that *every* type in non-strict
MySQL operates that way).
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-php by date

  From Date Subject
Next Message ivan valadares 2005-12-29 19:30:57 Postgresql backup and restore php script
Previous Message Jim C. Nasby 2005-12-17 00:31:21 Re: Why is PGSQL better than MySQL