Re: Uppercase to lowercase trigger? - Mailing list pgsql-general

From Chris Angelico
Subject Re: Uppercase to lowercase trigger?
Date
Msg-id CAPTjJmrUubX_q0HCXqM9UPrtRYF2MW4vMG8AS1OSKNB7Py_rnA@mail.gmail.com
Whole thread Raw
In response to Re: Uppercase to lowercase trigger?  (björn lundin <b.f.lundin@gmail.com>)
List pgsql-general
On Tue, May 15, 2012 at 4:04 PM, björn lundin <b.f.lundin@gmail.com> wrote:
> Hmm, I was under the impression that if you create the table with quoted field names, you get case-sensitive names,
> But if you create the tables without quotes around the the field names, pg will make them lowercase,
> But case-insensitive....

If they're quoted, case is retained; if they're not, they're
lowercased. This rule applies to both creation and referencing, so if
you always leave them unquoted, they are effectively case insensitive
(technically they're case-folded), or if you always quote them,
they're case sensitive.

ChrisA

pgsql-general by date:

Previous
From: chinnaobi
Date:
Subject: HotStandby --Advice needed
Next
From: Sumit Raja
Date:
Subject: Re: Postgres 9.0 Streaming Replication and Load Balancing?