Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B0BA79FB27D for ; Wed, 31 Jan 2007 19:21:01 -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 76365-07 for ; Wed, 31 Jan 2007 19:20:58 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 744069FB24D for ; Wed, 31 Jan 2007 19:20:58 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from plounts.uits.indiana.edu (plounts.uits.indiana.edu [129.79.1.73]) by svr4.postgresql.org (Postfix) with ESMTP id A4F275AF89B for ; Wed, 31 Jan 2007 23:20:57 +0000 (GMT) Received: from mail-relay.iu.edu (logchain.uits.indiana.edu [129.79.1.77]) by plounts.uits.indiana.edu (8.13.6/8.12.10/IUPO) with ESMTP id l0VNKovG003499; Wed, 31 Jan 2007 18:20:50 -0500 (EST) Received: from [156.56.197.101] (iub-vpn-197-101.noc.indiana.edu [156.56.197.101]) (authenticated bits=0) by mail-relay.iu.edu (8.13.6/8.12.10/IUPO) with ESMTP id l0VNKn2F009823 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 31 Jan 2007 18:20:49 -0500 (EST) In-Reply-To: References: <1C85230A-C17D-4601-B84E-6F43176C5D6D@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <53951298-D245-4EB2-9C3E-EA05A48C77BA@gmail.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Jeffrey Cox Subject: Re: getProcedureColumns Date: Wed, 31 Jan 2007 18:20:46 -0500 To: Kris Jurka X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.205 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO, SPF_NEUTRAL X-Spam-Level: * X-Archive-Number: 200701/190 X-Sequence-Number: 16555 Yea sure... I will look into the COLUM_TYPE issue and write a test case for column names. On that note, when I ran the test suit all the jdbc2 test would run fine, however, most of the others failed due to "to many connections". I of course tried to up my max connections beyond 20, but looks like will need to up shared memory maximums. (which might be interesting given I am on os X. Just never done that since switching). So before I go about figuring all that out, are failures expected? and if not, any thoughts on the number of connections I should configure for? Jeff On Jan 31, 2007, at 4:20 PM, Kris Jurka wrote: > > > On Wed, 31 Jan 2007, Jeffrey Cox wrote: > >> I been working with metadata on stored procedures and discovered >> that I can't get parameter names via getProcedureColumns. So i >> checked out the source and took a look at the method. Seems that >> for column names, a $ is appended to the arg type count. I guess I >> don't know if there is a reason that the actual parameter names >> are not used, or its just low on the TODO list. I went ahead and >> updated the method return column names as stored in procargnames >> of pg_catalog.pg_proc. I have attached a patch. > > It just hasn't been updated in a while. > >> I honestly don't know if this is the correct mechanism to handle >> this (I poped into #postgres and was told to attach a patch to an >> email to this list), so just point me in the right direction if >> need be (either on how to submit the patch, or why making this >> change is stupid). >> > > This is exactly the place to send it. Any chance we can also > convince you to add a test case and fix COLUMN_TYPE for out > parameters? > > Kris Jurka