Re: Case Preservation disregarding case sensitivity?

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: beau hargis <beauh(at)bluefrogmobile(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Case Preservation disregarding case sensitivity?
Date: 2006-10-28 14:59:09
Message-ID: 879704.84815.qm@web31810.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

> 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Troy 2006-10-28 21:30:42 Re: bug in on_error_rollback !?
Previous Message Richard Broersma Jr 2006-10-28 14:38:59 Re: Case Preservation disregarding case sensitivity?

Browse pgsql-sql by date

  From Date Subject
Next Message Jon Horsman 2006-10-28 15:18:52 Re: How to query information schema from shell script
Previous Message Richard Broersma Jr 2006-10-28 14:38:59 Re: Case Preservation disregarding case sensitivity?