Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A database structure that can improve the speed of queries at the cost of disk space and slower inserts/updates. It stores a copy of one or more columns sorted but structures the data differently to allow faster access.
6
votes
1
answer
9k
views
Creating index on a big text column in postgres
Query:
select * from tbl WHERE ( col ~~ '%zzz%')
Trying to create a btree index on the column
CREATE INDEX tbl_col_btree_idx ON tbl USING btree(col);
returns:
ERROR: index row requires 8456 bytes … the index worked with the error below):
CREATE INDEX text_ind ON tbl USING GIN (to_tsvector('english', col));
However when creating this index, it ignored some data with the error:
Word is too long …