Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W3sug-0007MC-DI for pgsql-jdbc@arkaria.postgresql.org; Thu, 16 Jan 2014 19:47:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W3suf-00017k-S8 for pgsql-jdbc@arkaria.postgresql.org; Thu, 16 Jan 2014 19:47:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W3sue-00016H-C0 for pgsql-jdbc@postgresql.org; Thu, 16 Jan 2014 19:47:36 +0000 Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W3suc-0003ud-BO for pgsql-jdbc@postgresql.org; Thu, 16 Jan 2014 19:47:36 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W3sub-0006iW-IL for pgsql-jdbc@postgresql.org; Thu, 16 Jan 2014 20:47:33 +0100 Received: from ppp-88-217-11-167.dynamic.mnet-online.de ([88.217.11.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jan 2014 20:47:33 +0100 Received: from spam_eater by ppp-88-217-11-167.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jan 2014 20:47:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Performance improvement proposal. Removal of toLowerCase calls. Date: Thu, 16 Jan 2014 20:47:28 +0100 Lines: 18 Message-ID: References: <52D7FE5E.3050503@redhat.com> <52D83125.2020908@ttc-cmc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-88-217-11-167.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org > Are you sure ? This is in the resultset, so any column names should have come back from the db. > Which means that they should come back in lower case anyway. create table foo ( "ID" integer, "Bar" varchar ); select * from foo; Should return ID and Bar as the column names. Danap probably also referred to the column names that are returned through getTableColumns() or getIndexColumns() or any other API call that returns information about tables, columns or other identifiers. I do the same thing in SQL Workbench/J: check the returned column names whether they are upper, lower or mixed case in order to know whether generated SQL statements (e.g. an update resulting from editing the data) need to quote the column names or not. Thomas -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc