Re: Performance improvement proposal. Removal of toLowerCase calls.

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Performance improvement proposal. Removal of toLowerCase calls.
Date: 2014-01-16 19:47:28
Message-ID: lb9cvv$coo$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

> 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2014-01-16 19:51:42 Re: Performance improvement proposal. Removal of toLowerCase calls.
Previous Message Dave Cramer 2014-01-16 19:33:46 Re: Performance improvement proposal. Removal of toLowerCase calls.