Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzOyu-0001fH-F4 for pgsql-performance@arkaria.postgresql.org; Tue, 03 Oct 2017 15:19:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dzOyu-00079S-23 for pgsql-performance@arkaria.postgresql.org; Tue, 03 Oct 2017 15:19:36 +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 1dzOx5-0002W7-FP for pgsql-performance@postgresql.org; Tue, 03 Oct 2017 15:17:43 +0000 Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dzOx2-0001yl-9r for pgsql-performance@postgresql.org; Tue, 03 Oct 2017 15:17:41 +0000 Received: by mail-oi0-x234.google.com with SMTP id v9so2648840oif.13 for ; Tue, 03 Oct 2017 08:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Dc0iCL8h9LRZKdBzi6/mBi1PjfKUvLq/gB/cGjCKd2A=; b=uOjvvppkk7iLdD43kC/I7plyh7WC/Pn3JcX0OHPqnMMmxHrKS+bmznWzmXFHBIeMCd LoRgNz7ii5ykx//PVZ+26CxdbmpwaQKUfEZ8iN8Z0Tle33s7jCRrRjjtEPnFKFBR/f24 XqdpnDuH0pdvAnDxHad4X5I3E+d4I8aOmkc1HVk9sSDMaQe37qZr1BIh1nIlaxjSa1aG OzBn6ubK8CEokdprhoKBGjCy7d+wfI70NBPQO1ByqrJJLNk+N+egA0ivp+ZR2tBLh+J5 7wvttmdkt1M7f1eYZqYKxfSiIk2t5mrHxrVaKujk1c2dWE+7YuuSvR/wb9XI7raYxDLs jQ7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Dc0iCL8h9LRZKdBzi6/mBi1PjfKUvLq/gB/cGjCKd2A=; b=GmK/8fgcpCvhB5dci7r5HiuXDLuLjPknHvtHXpXt/1Hbd7M4IEhAJGtHHZAvFclgMN C+vhYzspWPTXMQLUIKRBdJLAx7ZykCcfGw1ocitstKc1HnWrRU0wYhqJhs7VmBm43vBc R8Sm7svLHp3XoUJ0J2snblnphhq914+TB5OJZcY7/8RN69kzqd3IGM8wdpDJqJVyB4S9 Q/w6uQjalwX+Xb5oApdKrYkcv1sPg8I2ggJeKD6K/6hnfb9ckSuJzqt+s3SDpYUcubcK fTmQ/2enQzpZQrPTB9i4oWfweY63QaPRy4xNY/+Nyi9790aNklidZbeIV58vWHnA74Iy HBDQ== X-Gm-Message-State: AMCzsaX+CC6hS4UPhGUE9dXo9LnGIVNXjTdc7gFV6voD2kKZZINUS9rM qDPCLRLJICmIN/4xgHBqnnDhY0+jJ2K2XWgUGU0= X-Google-Smtp-Source: AOwi7QBuTIBtlfkfZsxZChXA6sbtqVp8635IRJzmMXtD3mLDxaMPThEGwfMiQr3FV1IPQvhu0DrZhOpM7EIEBUGLfhk= X-Received: by 10.157.51.23 with SMTP id f23mr10075832otc.419.1507043859004; Tue, 03 Oct 2017 08:17:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.47.101 with HTTP; Tue, 3 Oct 2017 08:17:38 -0700 (PDT) In-Reply-To: <1507042486.2998.1.camel@cybertec.at> References: <1507042486.2998.1.camel@cybertec.at> From: Adam Brusselback Date: Tue, 3 Oct 2017 11:17:38 -0400 Message-ID: Subject: Re: Stored Procedure Performance To: Purav Chovatia Cc: pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary="001a11c15ad0e08306055aa5fd66" 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 --001a11c15ad0e08306055aa5fd66 Content-Type: text/plain; charset="UTF-8" There is also the option of pg_stat_statements: https://www.postgresql.org/docs/current/static/pgstatstatements.html and auto_explain: https://www.postgresql.org/docs/current/static/auto-explain.html These should help you identify what is slowing things down. There is no reason I could think of you should be seeing a 10x slowdown between Postgres and Oracle, so you'll likely have to just profile it to find out. --001a11c15ad0e08306055aa5fd66 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

These should help you identify what = is slowing things down.=C2=A0 There is no reason I could think of you shoul= d be seeing a 10x slowdown between Postgres and Oracle, so you'll likel= y have to just profile it to find out.
--001a11c15ad0e08306055aa5fd66--