Varchar Indexing

Started by Mitch Vincentabout 25 years ago3 messagesgeneral
Jump to latest
#1Mitch Vincent
mitch@venux.net

Is there a size limit on indexable varying character fields?

I need a semi-large varchar field (say 2048 characters) but really need
the speed of an index in searching, I'm left wondering at what point
indexing varchar fields becomes useless (if it ever does)..

Thanks!

-Mitch

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Mitch Vincent (#1)
Re: Varchar Indexing

mitch <mitch@venux.net> writes:

Is there a size limit on indexable varying character fields?

1/3rd page, about 2700 bytes, if you're using btree index.

Presently, TOAST does not help any :-(

regards, tom lane

#3Alvar Freude
alvar.freude@merz-akademie.de
In reply to: Mitch Vincent (#1)
Re: Varchar Indexing, Null Bytes

Hi,

Tom Lane schrieb:

mitch <mitch@venux.net> writes:

Is there a size limit on indexable varying character fields?

1/3rd page, about 2700 bytes, if you're using btree index.

and for the "text" data type?

other question:

is it possible to store 0-bytes in a text field?

Ciao
Alvar