Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ekS4K-0001WY-Fd for pgsql-bugs@arkaria.postgresql.org; Sat, 10 Feb 2018 10:07:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekS4J-0000ou-1h for pgsql-bugs@arkaria.postgresql.org; Sat, 10 Feb 2018 10:07:39 +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 1ekS4I-0000ol-Ox for pgsql-bugs@lists.postgresql.org; Sat, 10 Feb 2018 10:07:38 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ekS4F-00062y-K4 for pgsql-bugs@lists.postgresql.org; Sat, 10 Feb 2018 10:07:37 +0000 Received: from [192.168.127.1] (port=45783 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1ekS4B-000K66-3Q; Sat, 10 Feb 2018 10:07:31 +0000 Received: from [127.0.0.1] (port=26312 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1ekS4A-0003mS-En; Sat, 10 Feb 2018 10:07:30 +0000 From: Andrew Gierth To: pgsql-bugs@lists.postgresql.org, praveenkumar52028@gmail.com Subject: Re: BUG #15057: Issue with UNKNOW type when calling a PostgreSQL function from java code In-Reply-To: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org> (PG Bug reporting form's message of "Sat, 10 Feb 2018 07:57:33 +0000") Message-ID: <87wozlrwmc.fsf@news-spur.riddles.org.uk> References: <151824945389.9456.1263445998324211651@wrigleys.postgresql.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Sat, 10 Feb 2018 10:07:30 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "PG" == PG Bug reporting form writes: PG> If I try to call a function as below PG> select myFunction(1,'This is unknown type',90.01,'Again a unknown PG> type column'); PG> It is raising an error like function myFunction(integer, unknown, PG> double precision, unknown) does not exist. I think you need to be a bit more specific about what precisely you did, because this is what I tried: create or replace function myfunc(a integer, b text, c double precision, d text) returns void language plpgsql as $$ begin raise info 'myfunc called'; end; $$; select myfunc(1,'foo',90.01,'bar'); INFO: myfunc called In particular: do you have more than one function of the same name? Were you actually calling the function from JDBC with parameters (and if so what types) rather than as a plain select? Show us an exact transcript, not just your editorialized summary. -- Andrew (irc:RhodiumToad)