Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6kpq-00043t-Hv for pgsql-performance@arkaria.postgresql.org; Mon, 23 Oct 2017 22:04:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e6kpp-0006D5-Pb for pgsql-performance@arkaria.postgresql.org; Mon, 23 Oct 2017 22:04:37 +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 1e6klE-0002yq-1a for pgsql-performance@postgresql.org; Mon, 23 Oct 2017 21:59:52 +0000 Received: from mail.wordtothewise.com ([2001:470:1:6d::9a]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6klB-0004li-5w for pgsql-performance@postgresql.org; Mon, 23 Oct 2017 21:59:50 +0000 Received: from satsuke.wordtothewise.com (204.11.227.194.static.etheric.net [204.11.227.194]) by mail.wordtothewise.com (Postfix) with ESMTPSA id 4D33623379 for ; Mon, 23 Oct 2017 15:00:22 -0700 (PDT) From: Steve Atkins Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: postgresql tuning with perf Date: Mon, 23 Oct 2017 14:59:47 -0700 References: To: pgsql-performance@postgresql.org In-Reply-To: Message-Id: <717F25D5-C545-4D6F-B1D3-113C27BA3CBA@blighty.com> X-Mailer: Apple Mail (2.3273) 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 > On Oct 23, 2017, at 12:19 PM, Purav Chovatia wrote: >=20 > Hello Experts, >=20 > We are trying to tune our postgresql DB using perf. We are running a C pr= ogram that connects to postgres DB and calls very simple StoredProcs, one e= ach for SELECT, INSERT & UPDATE.=20 >=20 > The SPs are very simple.=20 > SELECT_SP: > CREATE OR REPLACE PROCEDURE query_dept_new(p1 IN numeric, p2 OUT numeric,= p3 OUT numeric,.......,p205 OUT numeric) AS > BEGIN > SELECT c2,c3,......,c205 > INTO p2,p3,.......,p205 > FROM dept_new > WHERE c1 =3D p1; > END; Perhaps I'm confused, but I didn't think PostgreSQL had stored procedures. = If the code you're actually running looks like this then I don't think you'= re using PostgreSQL. Cheers, Steve --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance