X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 0ACF49DCDA8 for ; Fri, 16 Dec 2005 20:35:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 86131-01 for ; Fri, 16 Dec 2005 20:35:05 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id B3C3B9DCD40 for ; Fri, 16 Dec 2005 20:35:00 -0400 (AST) Received: by flake.decibel.org (Postfix, from userid 1001) id 3D214152E8; Fri, 16 Dec 2005 18:35:04 -0600 (CST) Date: Fri, 16 Dec 2005 18:35:04 -0600 From: "Jim C. Nasby" To: "Pedro B." Cc: John Mohr , pgsql-php@postgresql.org Subject: Re: Why is PGSQL better than MySQL Message-ID: <20051217003504.GF53809@pervasive.com> References: <1134440689.25330.112.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1134440689.25330.112.camel@localhost> X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.026 required=5 tests=[AWL=0.026] X-Spam-Score: 0.026 X-Spam-Level: X-Archive-Number: 200512/23 X-Sequence-Number: 3369 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@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461