Обсуждение: Case sensitivity
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
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
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?
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
"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