Re: Disadvantages to using "text" - Mailing list pgsql-novice

From Obe, Regina
Subject Re: Disadvantages to using "text"
Date
Msg-id 53F9CF533E1AA14EA1F8C5C08ABC08D20197A070@ZDND.DND.boston.cob
Whole thread Raw
In response to Disadvantages to using "text"  ("Don Mies (NIM)" <dmies@networksinmotion.com>)
List pgsql-novice
The other disadvantage I have noticed is that you can't override operator behavior of text but you can for varchar.
 
So I have been able to override the case sensitivity of varchar fields (which is annoying when working with MS Access etc)  simply by changing the way LIKE, = > etc.  are handled for varchar.  Since text is defined in pg_catalog, it doesn't seem possible to override it or at least haven't had any success with that.  Maybe I am missing something.
 
Thanks,
Regina
 


From: pgsql-novice-owner@postgresql.org on behalf of Greg Cocks
Sent: Wed 5/7/2008 1:48 PM
To: PostgreSQL List - Novice
Subject: Re: [NOVICE] Disadvantages to using "text"

One disadvantage is that if you are using MS Access as a front-end via
ODBC / linked tables, you can not do joins on fields set as text (in
queries, etc)


-----Original Message-----
From: Frank Bax [mailto:fbax@sympatico.ca]
Sent: Wednesday, May 07, 2008 10:55 AM
To: PostgreSQL List - Novice
Subject: Re: [NOVICE] Disadvantages to using "text"

Aurynn Shaw wrote:
> Internally, Postgres treats a VARCHAR(n) as a TEXT with a CHECK
> constraint applied to it, so VARCHAR is going to be slightly slower to
use.


Don't you mean VARCHAR(n) will be slightly slower on UPDATES.

--
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice

--
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice


The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer.


Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper.

pgsql-novice by date:

Previous
From: "Greg Cocks"
Date:
Subject: Re: Disadvantages to using "text"
Next
From: Aurynn Shaw
Date:
Subject: Re: Disadvantages to using "text"