Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TNwzL-0002Mc-M1 for pgsql-bugs@postgresql.org; Tue, 16 Oct 2012 02:34:35 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TNwzG-0005tn-SZ for pgsql-bugs@postgresql.org; Tue, 16 Oct 2012 02:34:35 +0000 Received: by mail-pb0-f46.google.com with SMTP id rr4so5513924pbb.19 for ; Mon, 15 Oct 2012 19:34:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=LsuzqKmsYzohN7+Bbe5m9rOaB6cNQZ2xpnYE+8ral2M=; b=PC5rG7GyxX0Tial66G2VpCyk7GPWI5yKpkwupELiOtzj9S2RzQCF3J5dro49px/S7J Z/kOfEJjgYTmjwSUsudFSLuQKjpnI6EObykwd1SZsYHqfSy/oKeEA2Azo5ftXGFIpJLt GYXiGMezsr21wWSiorRdI9JC+uuk8Or6qUJYgld4gxtgmRsP3g0/QXJTIoMW8MdGh39w HGkXzwpL3d1BmD63mNxtEXsiJSAbyY7TtBE8lo8njw7igs6kzKzmx01TES3DFXzUJ5e6 DqkcaIoRAaePHd4faPZSRLiUwp6Q72m1qPRDCjmTZf8u5CXRSfqX9p4t/Ru17mmdWAVx Z6vA== Received: by 10.68.212.6 with SMTP id ng6mr877379pbc.57.1350354869357; Mon, 15 Oct 2012 19:34:29 -0700 (PDT) Received: from ayaki.localdomain (office1.postnewspapers.com.au. [150.101.171.128]) by mx.google.com with ESMTPS id nm2sm1739274pbc.43.2012.10.15.19.34.26 (version=SSLv3 cipher=OTHER); Mon, 15 Oct 2012 19:34:28 -0700 (PDT) Message-ID: <507CC7B0.5080003@ringerc.id.au> Date: Tue, 16 Oct 2012 10:34:24 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: devenmthaker@gmail.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #7603: Application takes long time to fetch data from postgresql database References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkI2snrr8SIJTJiZiwXAh+G0po4IFbt0+zRPu38rVT7iN+vvzU4IaHqLBBj5NBY14/3j0lq X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/158 X-Sequence-Number: 34458 On 10/15/2012 10:54 PM, devenmthaker@gmail.com wrote: > The following bug has been logged on the website: > > Bug reference: 7603 > Logged by: Deven > Email address: devenmthaker@gmail.com > PostgreSQL version: 9.0.3 > Operating system: Windows 2003 R2 64 BITS > Description: > > Hi, > My application takes longer time (we see time out even) when data to be > fetched from Postgresql 9.0.3 is around 1900000 records. I am doing an > improvement at application level, but from database side any performance > tuning do i need to do? This is not a bug report. See http://www.postgresql.org/docs/current/static/bug-reporting.html Please ask on the pgsql-general mailing list or on dba.stackexchange.com . Read this first: https://wiki.postgresql.org/wiki/Slow_Query_Questions Also, you're on a very old release in the 9.0 series. Update to 9.0.11 urgently. The Pg team doesn't release patches just for fun, they're released to fix bugs and security issues. See: http://www.postgresql.org/support/versioning/ http://www.postgresql.org/docs/9.0/static/release.html -- Craig Ringer