Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1206164FD91 for ; Tue, 14 Oct 2008 15:23:55 -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 05080-03 for ; Tue, 14 Oct 2008 15:23:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-9404.dedibox.fr (sd-9404.dedibox.fr [88.191.51.144]) by postgresql.org (Postfix) with ESMTP id 00AAD64FD9D for ; Tue, 14 Oct 2008 15:23:50 -0300 (ADT) Received: by sd-9404.dedibox.fr (Postfix, from userid 1002) id D0E13D5C056; Tue, 14 Oct 2008 20:23:48 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: Manitou v0.9.10 From: "Daniel Verite" Subject: Re: Drupal and PostgreSQL - performance issues? To: "Mikkel =?ISO-8859-15?Q?H=F8gh?=" CC: pgsql-general@postgresql.org In-Reply-To: <2434A118-CEFA-43A9-BA88-006EC1F80326@hoegh.org> Date: Tue, 14 Oct 2008 20:23:47 +0200 Message-ID: X-Face: 0N#]; "Miw2ss`WySq(ZLLy[=.ai4D}yI#'n*PU:{%/ZVSUd*G$EuN$v@TyBnpW5x=-m*Jc?Cm&=kXN#l; pePLb!,P.9D4M]fHU+XMPTe(>>'( 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/560 X-Sequence-Number: 138809 Mikkel H=F8gh wrote: > In any case, if anyone has any tips, input, etc. on how best to=20=20 > configure PostgreSQL for Drupal, or can find a way to poke holes in=20 my=20=20 > analysis, I would love to hear your insights :) I'm a recent Drupal user with postgres. What I've noticed on drupal-6.4 with Ubuntu 8.04 is that the default=20 postgresql.conf has: ssl=3Dtrue and since drupal doesn't allow connecting to pgsql with unix socket=20 paths [1], what you get by default is probably TCP + SSL encryption. A crude test that just connects and disconnect to a local pg server=20 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=20 for your test. [1] A patch has been posted here: http://drupal.org/node/26836 , but it=20 seems to have gotten nowhere. The comments about pg_connect() are=20 depressingly lame, apparently nobody had a clue how unix socket files=20 should be specified, including the contributor of the patch! Best regards, --=20 Daniel PostgreSQL-powered mail user agent and storage:=20 http://www.manitou-mail.org