3 ms·
> So can you put an index on a TEXT column in PG? Yes, but the default index (btree) will generate an error if you try to insert data above 8k. The hash index
by masklinn 13y ago
> So can you put an index on a TEXT column in PG?
Yes, but the default index (btree) will generate an error if you try to insert data above 8k. The hash index will work.
Not that it makes much sense to use an index (rather than FTS) on such an amount of data.