pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: beau hargis <beauh@bluefrogmobile.com>
To: pgsql-sql@postgresql.org
Subject: Re: Case Preservation disregarding case sensitivity?
Date: Sat, 28 Oct 2006 07:59:09 -0700 (PDT)
Message-ID: <879704.84815.qm@web31810.mail.mud.yahoo.com> (raw)
In-Reply-To: <200610271623.37525.beauh@bluefrogmobile.com>

> Again, I am looking for a way (magic, patches, whiskey, etc) that will give me 
> case-preservation with EITHER case-sensitivity OR case-insensitivity, but not 
> both as I am seeing.
> 
> Thanks in advance. I am hoping to find a solution to this so I can actually 
> convert one of our databases to use Postgres. And I can say that little 
> issues like this are precisely why Postgres was never used in this 
> organization before, even though several of the other database developers 
> like the features, stability and performance of Postgres.


Here is an explination from the postgresql manual:
http://www.postgresql.org/docs/8.1/interactive/sql-syntax.html#SQL-SYNTAX-IDENTIFIERS

...
Quoting an identifier also makes it case-sensitive, whereas unquoted names are always folded to
lower case. For example, the identifiers FOO, foo, and "foo" are considered the same by
PostgreSQL, but "Foo" and "FOO" are different from these three and each other. (The folding of
unquoted names to lower case in PostgreSQL is incompatible with the SQL standard, which says that
unquoted names should be folded to upper case. Thus, foo should be equivalent to "FOO" not "foo"
according to the standard. If you want to write portable applications you are advised to always
quote a particular name or never quote it.)
...

Regards,

Richard Broersma Jr.



view thread (9+ messages)  latest in thread

Message-ID: <879704.84815.qm@web31810.mail.mud.yahoo.com>
Permalink:  ../879704.84815.qm@web31810.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/879704.84815.qm@web31810.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: rabroersma@yahoo.com, beauh@bluefrogmobile.com
  Subject: Re: Case Preservation disregarding case sensitivity?
  In-Reply-To: <879704.84815.qm@web31810.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox