Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id C4F3964FE95 for ; Wed, 17 Dec 2008 17:15:43 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 63157-02 for ; Wed, 17 Dec 2008 17:15:41 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f19.google.com (mail-bw0-f19.google.com [209.85.218.19]) by mail.postgresql.org (Postfix) with ESMTP id 1EB5D64FD3B for ; Wed, 17 Dec 2008 17:15:40 -0400 (AST) Received: by bwz12 with SMTP id 12so259988bwz.19 for ; Wed, 17 Dec 2008 13:15:39 -0800 (PST) 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=UrzGm1IdLk7Z2RnReoxkJfhwo3F6Mend+J4wLWrsQqU=; b=DBydM6W3GKo9wN/9AoIXx3kpVGFuoiElTRakNjXzu5Ey+aw5BEOW2fFqhuoeRft16e slQ6qHHHQLNtIhqAFrW4xgNCiwprzB7+FnPZSF24Ugqdm/kLIWG+kYlHYnu/Ddg+RjkM wykcuOXZmnnmFOF1EAsALjhqwjlzqxVvGLtxM= 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=Q57y/fzih5A4n2Lnc9wnUalL3hQ+g6SabvKfWtGDxIzlIxIBPZNki6EVwTBChZm8wM mKVQL7aDSnh0cw11hBZIGEbmfyDTZuh7PCdzHNwWuUICD7GUyCKicPMyAiPxGKBHHSIH NfUswqre+fNuM7z3FI0oj39AarXj6eq1ULJko= Received: by 10.223.106.15 with SMTP id v15mr1061283fao.15.1229548492995; Wed, 17 Dec 2008 13:14:52 -0800 (PST) Received: by 10.223.107.67 with HTTP; Wed, 17 Dec 2008 13:14:52 -0800 (PST) Message-ID: <603c8f070812171314y4a53f244k786beb0b97e903c4@mail.gmail.com> Date: Wed, 17 Dec 2008 16:14:52 -0500 From: "Robert Haas" To: "Jaime Casanova" Subject: Re: measure database contention Cc: "psql performance list" In-Reply-To: <3073cc9b0812171019n2244ecfaibf4c514986a69dee@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3073cc9b0812161132w3ae157a8n69e2b0cccea05ca2@mail.gmail.com> <603c8f070812170618g3116a90du94cbf102f0336d59@mail.gmail.com> <3073cc9b0812170738v69e43d89r8d6dae87453b4993@mail.gmail.com> <603c8f070812170856g7ae06d58q2f487bead5f7be15@mail.gmail.com> <3073cc9b0812171019n2244ecfaibf4c514986a69dee@mail.gmail.com> 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: 200812/168 X-Sequence-Number: 32204 > as you see, explain analyze says it will execute in 175.952ms and > because of network transfer of data executing this from pgadmin in > another machine it runs for 17s... but from time to time pgFouine is > shown upto 345.11 sec Well, 86000 rows is not enough to give PostgreSQL a headache, even on mediocre hardware. So I think that most likely culprit is the application that is reading the data - pgadmin or pgFouine. ...Robert