Case sensitivity

Started by Dario Ottavianoover 22 years ago5 messagesgeneral
Jump to latest
#1Dario Ottaviano
dario_ottaviano@togliquestovirgilio.it

I use postgres on a window server (IIS 5.1)
Is there anybody that knows if is possible to make postgres no case
sensitive in the manipulating data into tables/views?

Thank you.
D.Ottaviano

#2Richard Huxton
dev@archonet.com
In reply to: Dario Ottaviano (#1)
Re: Case sensitivity

On Sunday 11 January 2004 09:29, Dario Ottaviano wrote:

I use postgres on a window server (IIS 5.1)
Is there anybody that knows if is possible to make postgres no case
sensitive in the manipulating data into tables/views?

There's no general "case_sensitive = yes/no" flag. There are case-insensitive
operators you can use though.

--
Richard Huxton
Archonet Ltd

#3scott.marlowe
scott.marlowe@ihs.com
In reply to: Richard Huxton (#2)
Re: Case sensitivity

On Mon, 12 Jan 2004, Richard Huxton wrote:

On Sunday 11 January 2004 09:29, Dario Ottaviano wrote:

I use postgres on a window server (IIS 5.1)
Is there anybody that knows if is possible to make postgres no case
sensitive in the manipulating data into tables/views?

There's no general "case_sensitive = yes/no" flag. There are case-insensitive
operators you can use though.

Is there a case insensitive locale? Or is that even possible?

#4Richard Huxton
dev@archonet.com
In reply to: scott.marlowe (#3)
Re: Case sensitivity

On Monday 12 January 2004 17:58, scott.marlowe wrote:

On Mon, 12 Jan 2004, Richard Huxton wrote:

On Sunday 11 January 2004 09:29, Dario Ottaviano wrote:

I use postgres on a window server (IIS 5.1)
Is there anybody that knows if is possible to make postgres no case
sensitive in the manipulating data into tables/views?

There's no general "case_sensitive = yes/no" flag. There are
case-insensitive operators you can use though.

Is there a case insensitive locale? Or is that even possible?

I've heard it proposed, but don't believe anyone liked the idea enough to do
it. With my limited understanding of encoding/locale issues, that'd mean
adding support at the OS level, I think.

The other option would be an IVARCHAR type with suitably defined operators,
but that's hardly very portable.
--
Richard Huxton
Archonet Ltd

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: scott.marlowe (#3)
Re: Case sensitivity

"scott.marlowe" <scott.marlowe@ihs.com> writes:

Is there a case insensitive locale? Or is that even possible?

It's certainly possible, but I don't know of any standard locales that
behave like that.

One could also imagine developing a new set of comparison operators that
do case-insensitive comparison, and then making a special index opclass
for that. The locale-insensitive operators Peter built to optimize LIKE
indexing in 7.4 would be a good model.

regards, tom lane