Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1beSyH-0001zX-0w for pgsql-performance@arkaria.postgresql.org; Mon, 29 Aug 2016 20:15:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1beSyG-0000qO-7p for pgsql-performance@arkaria.postgresql.org; Mon, 29 Aug 2016 20:15:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1beSwa-0007NM-K2 for pgsql-performance@postgresql.org; Mon, 29 Aug 2016 20:14:08 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1beSwX-00026I-RQ for pgsql-performance@postgresql.org; Mon, 29 Aug 2016 20:14:07 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id F2D6F20422; Mon, 29 Aug 2016 16:14:04 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Mon, 29 Aug 2016 16:14:05 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=FXwTh4unIvLbDONqugBQg0/Iv00=; b=Eg1Y6 yxs20xFxCe/a90MxhNTMOosTZyEKM+/XuOod4wXCuVDfAbkKPcFw3HDJUEux3vOl wDI4RMOJJdLBFzyI8kYzg6K8shDYiSRHYePSH/AwevVdYREQ5iXZC4IbdJm0vj0w uc3zLsdgGK4a6/K79zYofO24x4xDSRPR63DL0E= X-Sasl-enc: vSY2w4bFX62QSr6y01S8JZeyt2YPkNDhZ3BuxkKVn/uS 1472501644 Received: from intern.anarazel.de (somacentral1.static.monkeybrains.net [162.217.75.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 537C9F29D1; Mon, 29 Aug 2016 16:14:04 -0400 (EDT) Date: Mon, 29 Aug 2016 13:14:03 -0700 From: Andres Freund To: debasis.moharana@ipathsolutions.co.in Cc: pgsql-performance@postgresql.org Subject: Re: pgsql-performance issue Message-ID: <20160829201403.gijea6hlcaceejby@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Hi, On 2016-08-20 08:38:43 +0000, debasis.moharana@ipathsolutions.co.in wrote: > I have a PostgreSQL 9.5 instance running on Windows 8 machine with 4GB of > RAM.This server is mainly used for inserting/updating large amounts of data > via copy/insert/update commands, and seldom for running select queries. > > Here are the relevant configuration parameters I changed: > > max_connections = 100 > shared_buffers = 512MB > effective_cache_size = 3GB > work_mem = 12233kB > maintenance_work_mem = 256MB > min_wal_size = 1GB max_wal_size = 2GB > checkpoint_completion_target = 0.7 > wal_buffers = 16MB > default_statistics_target = 100 > > After setting in postgresql.conf. I run the select query to fetch large > amount of record of 29000 in postgresql but it takes 10.3 seconds but the > same query takes 2 seconds for execution in MSSQL. > > So my query is how to improve the perfermance in postgresql. Please provide the output EXPLAIN (ANALYZE, BUFFERS) yourquery; and your query. Then we'll possibly be able to help you - atm we don't have enough information. Regards, Andres -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance