Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fv3JJ-0004wW-31 for pgsql-general@arkaria.postgresql.org; Wed, 29 Aug 2018 16:27:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fv3JH-0004rB-62 for pgsql-general@arkaria.postgresql.org; Wed, 29 Aug 2018 16:27:11 +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.89) (envelope-from ) id 1fv3JG-0004qu-R2 for pgsql-general@lists.postgresql.org; Wed, 29 Aug 2018 16:27:10 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fv3JD-00011i-SM for pgsql-general@postgresql.org; Wed, 29 Aug 2018 16:27:09 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id B6FCBECE6B88 for ; Wed, 29 Aug 2018 09:27:06 -0700 (MST) Date: Wed, 29 Aug 2018 09:27:06 -0700 (MST) From: TalGloz To: pgsql-general@postgresql.org Message-ID: <1535560026747-0.post@n3.nabble.com> In-Reply-To: <019e01d43f91$5f3c4460$1db4cd20$@swisspug.org> References: <1535533938898-0.post@n3.nabble.com> <019001d43f86$11742960$345c7c20$@swisspug.org> <1535541719123-0.post@n3.nabble.com> <019e01d43f91$5f3c4460$1db4cd20$@swisspug.org> Subject: RE: Executing a Function with an INSERT INTO command fails MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is very strange, even if I comment all the loops in the function and leave only the INSERT INTO command the insert still doesn't happen. > The sealArray creation is modified, because I don't know how the function > public.seal_diff_benchmark is defined. >> public.seal_diff_benchmark(tempVar1, tempVar2, sealparams) is a C >> extension function that takes TEXT 3 parameters does something with them >> and returns an array of TEXT with [text_1, text_2] back. The C extension >> uses some external project libraries compiled into a .so file and copied >> into the pgsql-10/lib/. > Is there any reason for the loop 1..2? This is just for doing some tests, the number 2 will be replaced later with some parameter. Best regards, Tal -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html