3 ms·
> can you do a normal index on JSON though? Yes, using the ->> operator you should be able to create an index on a JSON field, e.g. CREATE INDEX ON table (
by masklinn 13y ago
> can you do a normal index on JSON though?
Yes, using the ->> operator you should be able to create an index on a JSON field, e.g.
CREATE INDEX ON table ((field->>'thing'))
(an index on a JSON column makes no more sense than on e.g. an hstore column)