Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TK0Lg-0005LC-TY for pgsql-jdbc@postgresql.org; Fri, 05 Oct 2012 05:21:21 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TK0Ld-0007Rr-Us for pgsql-jdbc@postgresql.org; Fri, 05 Oct 2012 05:21:18 +0000 Received: by mail-pa0-f46.google.com with SMTP id hz1so1275838pad.19 for ; Thu, 04 Oct 2012 22:21:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=AQWwP+9VxRai8gpDv82FRxL23NJcUldptweVWYODf8U=; b=cH7REnKxzTcr++WngsMo61LT4BuvhGUG8scjR9mfsnhCLxGUuNZrb4/cCydhgpeeQ5 Cy6x8DPAevXCGk8kVmFfwXZvOXAY7tsV43f7AsoeKrshI5ScNG2RTkzatsNsDYa8+AXA ZY0WXBG3gbv3OBPMC//JbfoFMoyXX9pI3MkP9OpFaRPdZTRB8899LozueQhC5TiMMAO7 7IP1zBRyqNWyRc0yld0DPMEFHAL/ymvqM+ejz5DtE6xQC9Ey6QrqHSK0KWyxVJlMYDAn cgSbRU5yDeHJXEfF3BgM0i9OAHMQkZN5P9gBPmJBDXob03V2VIhpO/qld8YUEPe7fdoR T3cg== Received: by 10.66.85.167 with SMTP id i7mr18903034paz.8.1349414476062; Thu, 04 Oct 2012 22:21:16 -0700 (PDT) Received: from ayaki.localdomain (office1.postnewspapers.com.au. [150.101.171.128]) by mx.google.com with ESMTPS id qq9sm5489107pbb.24.2012.10.04.22.21.13 (version=SSLv3 cipher=OTHER); Thu, 04 Oct 2012 22:21:15 -0700 (PDT) Message-ID: <506E6E47.7000603@ringerc.id.au> Date: Fri, 05 Oct 2012 13:21:11 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Eyal Wilde CC: pgsql-jdbc@postgresql.org Subject: Re: bug report: slow getColumnTypeName References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQleyhaTgIt37Li9tZuCQ966cC+/0Yemq936r3WTvOgyp6nZ5c5clfwB0f5cBW/z7C/xX9cN X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/14 X-Sequence-Number: 23338 On 10/05/2012 07:07 AM, Eyal Wilde wrote: > > ResultSetMetaData __md = __rs.getMetaData(); > //this is fine > String __sf1name = __md.getColumnName(1); > //this is fine > int __if1type = __md.getColumnType(1); > //this is fine > String __sf1type = > __md.getColumnTypeName(1); //this is SLOW!! ~15msec Can you wrap that up into a test case (SQL schema and Java code) that's self contained and runnable? -- Craig Ringer