Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EB98164FDA2 for ; Tue, 14 Oct 2008 15:44:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 09403-06 for ; Tue, 14 Oct 2008 15:44:45 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gx0-f16.google.com (mail-gx0-f16.google.com [209.85.217.16]) by postgresql.org (Postfix) with ESMTP id ACBED64FDA0 for ; Tue, 14 Oct 2008 15:44:45 -0300 (ADT) Received: by gxk9 with SMTP id 9so4763203gxk.19 for ; Tue, 14 Oct 2008 11:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Ru5AmZ2R+2c6QMInu+vx6CbQKOdI4pJo3pZMwvvEIg0=; b=eKc2jpzmvx+yZwOWW3yaRzgNsrxSyR8sf5upQ5w6DdeoJDgGf9S1N15+vy+oK8uXmK CoHp4oE+saBDiIYW2+oC5cimKsU5bp6PKJum1pBwL29ZKnRzoWv0keQ5z/4Au4IolwyR ixkdl7FsHin24Ox8LiJdM1xpzCsxyggMLEF9M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KIGbOvI4acU4tVFuBeFwmYERfXYyNUouazAZo9RkjVRpyxu2JSEs4epwdsA5BRLZH4 OpD4C2KjHIuwMvX/gzbYqmR3y725UHzYDyvyDLQhTB1n08zLBkpD8agdcbzqZZAMlTNX kB0UWokYRTw+idgbhZu8IFJZ3rRV8rVB/wkOM= Received: by 10.143.19.16 with SMTP id w16mr5697wfi.223.1224009883737; Tue, 14 Oct 2008 11:44:43 -0700 (PDT) Received: by 10.114.39.11 with HTTP; Tue, 14 Oct 2008 11:44:43 -0700 (PDT) Message-ID: Date: Tue, 14 Oct 2008 12:44:43 -0600 From: "Scott Marlowe" To: "=?ISO-8859-1?Q?Mikkel_H=F8gh?=" Subject: Re: Drupal and PostgreSQL - performance issues? Cc: pgsql-general@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/564 X-Sequence-Number: 138813 On Tue, Oct 14, 2008 at 12:39 PM, Mikkel H=F8gh wrote: > On 14/10/2008, at 20.23, Daniel Verite wrote: >> >> What I've noticed on drupal-6.4 with Ubuntu 8.04 is that the default >> postgresql.conf has: >> ssl=3Dtrue >> and since drupal doesn't allow connecting to pgsql with unix socket path= s >> [1], what you get by default is probably TCP + SSL encryption. >> A crude test that just connects and disconnect to a local pg server >> appears to me to be 18 times faster when SSL is off. >> So you might want to check if setting ssl to false makes a difference fo= r >> your test. > > Ouch, there's a gotcha. So enabling SSL gives you SSL connections by > default, even for localhost? That's=85 unexpected. > >> [1] A patch has been posted here: http://drupal.org/node/26836 , but it >> seems to have gotten nowhere. The comments about pg_connect() are >> depressingly lame, apparently nobody had a clue how unix socket files sh= ould >> be specified, including the contributor of the patch! > > Well, I suppose no one thought about looking at a specific path instead o= f > just the default location. That's what we do for MySQL as well. I suppose > that is a bit silly, but that, too, is going away in Drupal 7 (and I won'= t > miss it). It will do the Drupal project a lot of good not having to maint= ain > its own database abstraction system. > > I'm going to run the test again without SSL to see how much difference it > does. Thanks for the tip. Also, look at setting up memcached. It makes a world of difference.