Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XGsEg-0003g0-Il for pgsql-sql@arkaria.postgresql.org; Mon, 11 Aug 2014 16:14:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XGsEf-0001lx-Rj for pgsql-sql@arkaria.postgresql.org; Mon, 11 Aug 2014 16:14:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XGsEe-0001lq-R4 for pgsql-sql@postgresql.org; Mon, 11 Aug 2014 16:14:12 +0000 Received: from 216-139-250-139.aus.us.siteprotect.com ([216.139.250.139] helo=joe.nabble.com) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XGsEb-0006Md-44 for pgsql-sql@postgresql.org; Mon, 11 Aug 2014 16:14:10 +0000 Received: from sam.nabble.com ([192.168.236.26]) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XGsEA-0006Ox-Re for pgsql-sql@postgresql.org; Mon, 11 Aug 2014 09:13:42 -0700 Date: Mon, 11 Aug 2014 09:13:27 -0700 (PDT) From: David G Johnston To: pgsql-sql@postgresql.org Message-ID: <1407773607813-5814428.post@n5.nabble.com> In-Reply-To: References: <53E0D58E.9040502@aklaver.com> <53E23483.4030906@aklaver.com> Subject: Re: function call MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Marcin Krawczyk-2 wrote >> >> So it would seem that the issue is with ERP application returning the >>> information. >>> >> >> This probably hinges on what you are defining as returning? >> >> In your function description you note that the function issues documents. >> >> Is that what you are using to determine that the function has completed? >> > > The function makes some calculations, then INSERTs and UPDATEs data (the > aforementioned documents) then returns 1 row with 3 columns with > information on whether there were any errors or how many documents were > created and so on. Are you positive the pgAdmin and your application are talking to the same machine? Is there any variation in run-time for the two clients? Can you get both of them to run the same query but using EXPLAIN ANALYZE? David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/function-call-tp5813776p5814428.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql