tweaking scan.l

From: Ben Kim <bkim(at)coe(dot)tamu(dot)edu>
To: pgsql-admin(at)postgresql(dot)org
Subject: tweaking scan.l
Date: 2004-03-30 17:46:27
Message-ID: Pine.GSO.4.10.10403301106140.29968-100000@edsun.coe.tamu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Manuel Sugawara <masm ( at ) fciencias ( dot ) unam ( dot ) mx> wrote:
>> Is there a way to completely turn off case sensitivity of the names
>> of table, field, sequence, etc.?
>No, i'm afraid not. But you can tweak scan.l to teach postgreSQL do
>what you want.

Many thanks. I want to ask a few questions, if you don't mind.

I checked the file scan.l. I guess you are referring to these lines... I
wonder if I just comment them out,

1. whether the mixed case table names will be delivered finally to the
query engine? (Will MyTable be the same as "MyTable" then?)
2. whether all the other parts of the backend will accept this change
without problem?
3. Is there an easy test to make assure that the change is not causing
unforeseen problem, because I'm not expert enough?

(I'm not using keywords as table names, so at least this is not a
concern.)

for (i = 0; ident[i]; i++)
{
if (isupper((unsigned char) ident[i]))
ident[i] = tolower((unsigned char) ident[i]);
}

In fact this was a problem for me making interfacing with phakt
(dreamweaver) and dbdesigner impossible. Phakt people's response is on
this page if you are interested.
http://www.interakt.ro/products/bbs/view_0_9873.html

Thanks,

Ben Kim

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Geoffrey 2004-03-30 18:22:08 Re: Spontaneous PostgreSQL Server Reboot?
Previous Message Manuel Sugawara 2004-03-30 16:52:29 Re: Quick System Catalog Query Question