The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

380960 (6) [Avatar] Offline
#1
Whith the list:

CREATE INDEX idx_ch15_ma_roads_geom_rt_number
ON ch15.ma_roads
USING gist(geom,rt_number);


I get the following error:


ERROR: data type character varying has no default operator class for access method "gist"
HINT: You must specify an operator class for the index or define a default operator class for the data type.

********** Error **********

ERROR: data type character varying has no default operator class for access method "gist"
SQL state: 42704
Hint: You must specify an operator class for the index or define a default operator class for the data type.


I'm running postgresql 9.5
regina.leo (265) [Avatar] Offline
#2
Do

CREATE EXTENSION btree_gist;

Then rerun the index creation.

We may have forgotten to state that in the book since we already had it installed.