Re: Disadvantages to using "text"

Поиск
Список
Период
Сортировка
От Obe, Regina
Тема Re: Disadvantages to using "text"
Дата
Msg-id 53F9CF533E1AA14EA1F8C5C08ABC08D20197A070@ZDND.DND.boston.cob
обсуждение исходный текст
Ответ на Disadvantages to using "text"  ("Don Mies (NIM)" <dmies@networksinmotion.com>)
Список 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 по дате отправления:

Предыдущее
От: "Greg Cocks"
Дата:
Сообщение: Re: Disadvantages to using "text"
Следующее
От: Aurynn Shaw
Дата:
Сообщение: Re: Disadvantages to using "text"