Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Case Preservation disregarding case

From: Ken Johanson <pg-user(at)kensystem(dot)com>
To: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-sql(at)postgresql(dot)org
Subject: Re: [HACKERS] Case Preservation disregarding case
Date: 2006-12-02 16:48:38
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-sql
Dennis Bjorklund wrote:
> Ken Johanson skrev:
>> Has your experience with PG been different? If so I presume you have 
>> have found a config that allows?:
>> pers.firstName,
>> pers.lastname,
> As long as you don't create the columns using quotes you can use that 
> kind of names. For example
>   CREATE TABLE foo (BAR int);
>   INSERT INTO foo VALUES (42);
>   SELECT BaR, bar, BAR, "bar" FROM foo;
> But using "Bar" wont work.
> /Dennis

That definitely makes sense. If one *wants* to enforce case, they should 
create the identifier with quotes.

Although, since I'm using pgAdmin (III) to design tables in this case, 
or creating the tables through JDBC (a convenient way to copy tables and 
data from another datasource) (using the copy-paste gesture), I believe 
those tools both *are* quoting identifiers that have camel case. And 
that their behavior can't be overridden.

So though I might personally be comfortable with DDL commands to 
re-define my existing quoted columns (as created by JDBC and pgAdmin), 
other users may not be. And having to recreate and issue the DDL to use 
un-quoted col names will be tedious in my case since I have ~20 tables 
to import.

So my vote would remain for having a config-option to ignore case, even 
on quoted identifiers..


In response to


pgsql-hackers by date

Next:From: Joshua D. DrakeDate: 2006-12-02 16:56:35
Subject: Re: PostgreSQL win32 fragmentation issue
Previous:From: Thomas H.Date: 2006-12-02 16:46:43
Subject: Re: PostgreSQL win32 fragmentation issue

pgsql-sql by date

Next:From: Dennis BjorklundDate: 2006-12-02 17:10:42
Subject: Re: [HACKERS] Case Preservation disregarding case
Previous:From: Dennis BjorklundDate: 2006-12-02 16:02:55
Subject: Re: [HACKERS] Case Preservation disregarding case

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group