From jinujosein@yahoo.com Thu Sep 25 03:39:17 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 203E8D1B508 for ; Thu, 25 Sep 2003 03:39:17 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 48333-08 for ; Thu, 25 Sep 2003 00:39:06 -0300 (ADT) Received: from web14915.mail.yahoo.com (web14915.mail.yahoo.com [216.136.225.228]) by svr1.postgresql.org (Postfix) with SMTP id DA009D1B52E for ; Thu, 25 Sep 2003 00:39:05 -0300 (ADT) Message-ID: <20030925033905.35938.qmail@web14915.mail.yahoo.com> Received: from [202.9.168.87] by web14915.mail.yahoo.com via HTTP; Wed, 24 Sep 2003 20:39:05 PDT Date: Wed, 24 Sep 2003 20:39:05 -0700 (PDT) From: "George A.J" Subject: Case Insensitive comparison To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1772400090-1064461145=:35686" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/410 X-Sequence-Number: 10498 --0-1772400090-1064461145=:35686 Content-Type: text/plain; charset=us-ascii 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 --0-1772400090-1064461145=:35686 Content-Type: text/html; charset=us-ascii
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 --0-1772400090-1064461145=:35686-- From demolish@cwgsy.net Thu Sep 25 17:25:37 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id ED299D1B52D for ; Thu, 25 Sep 2003 17:25:37 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 33622-06 for ; Thu, 25 Sep 2003 14:25:06 -0300 (ADT) Received: from gsy_sbs_1.cisx.com (unknown [213.133.202.58]) by svr1.postgresql.org (Postfix) with ESMTP id 0D4B8D1B50B for ; Thu, 25 Sep 2003 14:25:05 -0300 (ADT) Received: from DEMOLITION ([192.168.100.22]) by gsy_sbs_1.cisx.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id TTCQRNAH; Thu, 25 Sep 2003 18:15:36 +0100 Message-ID: <007f01c38389$f9d463b0$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" References: <20030925033905.35938.qmail@web14915.mail.yahoo.com> Subject: Re: Case Insensitive comparison Date: Thu, 25 Sep 2003 18:24:42 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/411 X-Sequence-Number: 10499 ----- Original Message ----- From: George A.J To: pgsql-admin@postgresql.org Sent: Thursday, September 25, 2003 4:39 AM Subject: [ADMIN] Case Insensitive comparison >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 I have created a text data type which is case-insensitive. Everything is identical to type text in all other respects. If you would like I can email you the library files to make and install it. Regards Donald Fraser From scott.marlowe@ihs.com Thu Sep 25 17:41:14 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id AF733D1B52B for ; Thu, 25 Sep 2003 17:41:14 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 36090-10 for ; Thu, 25 Sep 2003 14:41:05 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id BC521D1B527 for ; Thu, 25 Sep 2003 14:41:03 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.10/8.12.10) with ESMTP id h8PHdb1o028210; Thu, 25 Sep 2003 11:39:37 -0600 (MDT) Date: Thu, 25 Sep 2003 11:34:37 -0600 (MDT) From: "scott.marlowe" To: Donald Fraser Cc: "[ADMIN]" Subject: Re: Case Insensitive comparison In-Reply-To: <007f01c38389$f9d463b0$1664a8c0@DEMOLITION> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/413 X-Sequence-Number: 10501 Any chance of those libs being put somewhere public (gborg.postgresql.org or something?) On Thu, 25 Sep 2003, Donald Fraser wrote: > > ----- Original Message ----- > From: George A.J > To: pgsql-admin@postgresql.org > Sent: Thursday, September 25, 2003 4:39 AM > Subject: [ADMIN] Case Insensitive comparison > > > >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 > > I have created a text data type which is case-insensitive. Everything is > identical to type text in all other respects. If you would like I can email you > the library files to make and install it. > > Regards > Donald Fraser > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > From demolish@cwgsy.net Thu Sep 25 17:57:07 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id E6549D1B4E1 for ; Thu, 25 Sep 2003 17:57:07 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 38402-09 for ; Thu, 25 Sep 2003 14:56:58 -0300 (ADT) Received: from CISX-Linux4.cisx.com (unknown [213.133.202.58]) by svr1.postgresql.org (Postfix) with ESMTP id CE3A3D1B501 for ; Thu, 25 Sep 2003 14:56:56 -0300 (ADT) Received: from DEMOLITION ([192.168.100.22]) by CISX-Linux4.cisx.com (8.12.8/8.12.8) with SMTP id h8PHtqOF016752 for ; Thu, 25 Sep 2003 18:55:52 +0100 Message-ID: <00a901c3838e$76ae8790$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" References: Subject: Re: Case Insensitive comparison Date: Thu, 25 Sep 2003 18:57:18 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/414 X-Sequence-Number: 10502 Ok I will have a look at how to put it on gborg. Regards Donald Fraser ----- Original Message ----- From: "scott.marlowe" To: "Donald Fraser" Cc: "[ADMIN]" Sent: Thursday, September 25, 2003 6:34 PM Subject: Re: [ADMIN] Case Insensitive comparison > Any chance of those libs being put somewhere public (gborg.postgresql.org > or something?) > > On Thu, 25 Sep 2003, Donald Fraser wrote: > > > > > ----- Original Message ----- > > From: George A.J > > To: pgsql-admin@postgresql.org > > Sent: Thursday, September 25, 2003 4:39 AM > > Subject: [ADMIN] Case Insensitive comparison > > > > > > >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 > > > > I have created a text data type which is case-insensitive. Everything is > > identical to type text in all other respects. If you would like I can email you > > the library files to make and install it. > > > > Regards > > Donald Fraser > > > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > > > > From demolish@cwgsy.net Thu Sep 25 18:33:18 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id CCEBCD1B4EE for ; Thu, 25 Sep 2003 18:33:18 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 44876-04 for ; Thu, 25 Sep 2003 15:33:09 -0300 (ADT) Received: from CISX-Linux4.cisx.com (unknown [213.133.202.58]) by svr1.postgresql.org (Postfix) with ESMTP id A776CD1B51F for ; Thu, 25 Sep 2003 15:33:07 -0300 (ADT) Received: from DEMOLITION ([192.168.100.22]) by CISX-Linux4.cisx.com (8.12.8/8.12.8) with SMTP id h8PIW3OF016757 for ; Thu, 25 Sep 2003 19:32:03 +0100 Message-ID: <00ba01c38393$84d1d0c0$1664a8c0@DEMOLITION> From: "Donald Fraser" To: "[ADMIN]" References: <00a901c3838e$76ae8790$1664a8c0@DEMOLITION> <20030925180442.GA15437@clueinc.net> Subject: Re: Case Insensitive comparison Date: Thu, 25 Sep 2003 19:33:30 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/416 X-Sequence-Number: 10504 Ok I have started the process... I now have to wait for GBorg to get back to me on whether they want it on the site our not. Regards Donald Fraser ----- Original Message ----- From: "Jamie Lawrence" To: "Donald Fraser" Sent: Thursday, September 25, 2003 7:04 PM Subject: Re: [ADMIN] Case Insensitive comparison > On Thu, 25 Sep 2003, Donald Fraser wrote: > > > Ok I will have a look at how to put it on gborg. > > When you do, can you point the list at it, or email me what you've done? > I'd love to have this availale - I've had to write some creepy, slow > code to simulate it. I haven't been able to think of a way to write > something that would do this without writing something in C, which I > haven't been willing to do yet. > > Thank you! > > -j > > > Regards > > Donald Fraser > [...] > > > Any chance of those libs being put somewhere public (gborg.postgresql.org > > > or something?) > > > > > > On Thu, 25 Sep 2003, Donald Fraser wrote: > [...] > > > > I have created a text data type which is case-insensitive. Everything is > > > > identical to type text in all other respects. If you would like I can email > > you > > > > the library files to make and install it.