From: George A.J <jinujosein@yahoo.com>
To: pgsql-sql@postgresql.org
Subject: Case Insensitive comparison
Date: Wed, 24 Sep 2003 20:35:50 -0700 (PDT)
Message-ID: <20030925033550.35699.qmail@web14915.mail.yahoo.com> (raw)
hai
i am using postgresql 7.3.x. I am converting a database in MS SQL server to PostgreSQL.
The main problems i am facing is that in sql server the text comparisons are case insensitive. how can i compare text case insensitive in postgresql without using an upper() or lower() function in both sides (=). Is there any option to set in postgresql?
Is there any problem in overriding the = operator that compare text. ie droping the current operator = and creating a new = operator(text,text). Does the existing = operator is using internally by postgres for some porpose. please help
Another problem is in creating function...
How can i create a function that accept and return any type. the type "any" is not allowing as parameter or return type. Is it possible? i want to create a function similar to NULLIF().
jinujose
---------------------------------
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
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: jinujosein@yahoo.com
Subject: Re: Case Insensitive comparison
In-Reply-To: <20030925033550.35699.qmail@web14915.mail.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