Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 143196326CE for ; Wed, 7 Jul 2010 05:26:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 89897-01 for ; Wed, 7 Jul 2010 08:26:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f46.google.com (mail-ew0-f46.google.com [209.85.215.46]) by mail.postgresql.org (Postfix) with ESMTP id 7EB61634118 for ; Wed, 7 Jul 2010 05:26:19 -0300 (ADT) Received: by ewy23 with SMTP id 23so2039157ewy.19 for ; Wed, 07 Jul 2010 01:26:17 -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 :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=N9szku+4WowRIbvJX0/d0TpJ/eZ59O4lEwMMkg2NegM=; b=Hjvo3WGcmTpv+8T6en0SVT+yZdUUDlmegwl0Ae7gJfF+okRaSE11fijYV1U7NH9bEq g8aGCyBQ9KuzbMlMnEFyLMM5kq/x63+rChxXkR4WX4+T8bevroFtTo0xsWyUFEQgQbSL Khe4gwibWhBpjJScnWedpUMnoDwxBb/9Rb6I0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=mUAQMjqAC61gasgINwEH+A13AeDp6wkpmYxC1n0RzZBQQIAqATTxRFgSV/Y9rlbDEN 6HPig6/PxmiZ1FQkoeBq8hZvz10Wqd9d68Cl9h96vrEdfdm5+tNQUKkHKRbj+NnDYrMB AzGOGbhNRARi8gQrf9Qw0natAtvPUA5wJ78EU= Received: by 10.213.36.18 with SMTP id r18mr5143735ebd.71.1278491177383; Wed, 07 Jul 2010 01:26:17 -0700 (PDT) Received: from [0.0.0.0] (5357DA75.cable.casema.nl [83.87.218.117]) by mx.google.com with ESMTPS id z55sm59233123eeh.9.2010.07.07.01.26.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 07 Jul 2010 01:26:16 -0700 (PDT) Message-ID: <4C343A59.7050908@gmail.com> Date: Wed, 07 Jul 2010 10:27:05 +0200 From: Yeb Havinga User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "JOUANIN Nicolas (44)" CC: pgsql-performance@postgresql.org Subject: Re: Two different execution plan for the same request References: <4C3432F0.1090004@dgfip.finances.gouv.fr> In-Reply-To: <4C3432F0.1090004@dgfip.finances.gouv.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201007/79 X-Sequence-Number: 39468 JOUANIN Nicolas (44) wrote: > Hi, > > I've trouble with some SQL request which have different execution > plans when ran on two different servers. One server is the development > environment, the othe rone is th pre-production env. > Both servers run postgreSQL 8.3.0 on Linux and : > - both databases contains the same data (pg_dump/pg_restore between > servers) > - instances have the same configuration parameters > - vaccum and analyze is run every day. > The only difference I can see is the hardware. The pre-preoduction > env. has more RAM, more CPU and a RAID5 disk array through LVM where > data are stored. Hello Jouanin, Could you give some more information following the guidelines from http://wiki.postgresql.org/wiki/SlowQueryQuestions ? Essential are the contents from both conf files (comments may be removed). regards, Yeb Havinga