Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 626309FB350 for ; Tue, 27 Feb 2007 08:37:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 92135-04 for ; Tue, 27 Feb 2007 08:37:11 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from pjetlic.mobart.hr (pjetlic.mobart.hr [80.80.51.10]) by postgresql.org (Postfix) with ESMTP id 5FE1B9FB347 for ; Tue, 27 Feb 2007 08:37:11 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by pjetlic.mobart.hr (Postfix) with ESMTP id C9FC817F55 for ; Tue, 27 Feb 2007 13:37:09 +0100 (CET) Received: from pjetlic.mobart.hr ([127.0.0.1]) by localhost (pjetlic [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09367-03 for ; Tue, 27 Feb 2007 13:37:03 +0100 (CET) Received: from mike.mobart.hr (mike.mobart.hr [192.168.10.94]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pjetlic.mobart.hr (Postfix) with ESMTP id 7E3D1186D5 for ; Tue, 27 Feb 2007 13:37:03 +0100 (CET) Subject: Re: Calling functions with table-based-type parametars From: Mario Splivalo Reply-To: mario.splivalo@mobart.hr To: pgsql-jdbc@postgresql.org In-Reply-To: <1172579058.11691.17.camel@localhost.localdomain> References: <1172246374.23787.25.camel@localhost.localdomain> <1172506356.8206.27.camel@localhost.localdomain> <1172510852.974.2.camel@localhost.localdomain> <45E31E8E.9070305@ejurka.com> <1172579058.11691.17.camel@localhost.localdomain> Content-Type: text/plain Organization: Mob-Art d.o.o. Date: Tue, 27 Feb 2007 13:37:03 +0100 Message-Id: <1172579823.11691.19.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by OpenSource AV+AS Mail Server X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/148 X-Sequence-Number: 16704 On Tue, 2007-02-27 at 13:24 +0100, Mario Splivalo wrote: > As it turns out, it was permissions problem. I created the table and the > function as the database owner. But, there is user set up for > tomcat/jdbc, and all data manipulation is done trough psql functions. > Now, that user has GRANT EXECUTE ON f1(t1) TO jdbcuser; I forgot to GRANT USAGE on schema public for jdbcuser. Now it's ok. Mike