Re: [GENERAL] Index using in jsonb query - Mailing list pgsql-general

From John R Pierce
Subject Re: [GENERAL] Index using in jsonb query
Date
Msg-id b26691d5-73e8-24d0-ece9-6fe27b48696a@hogranch.com
Whole thread Raw
In response to [GENERAL] Index using in jsonb query  (SuperCiccio <sc_030268@yahoo.it>)
Responses Re: [GENERAL] Index using in jsonb query  (SuperCiccio <sc_030268@yahoo.it>)
List pgsql-general
On 3/11/2017 3:55 PM, SuperCiccio wrote:
Is there a way to make the following query use some sort of indexing?

select field1,field2 from datatable where (jsonfield#>>'{path1,path2}')::numeric < 1000;

if the '{path1,path2}' part is constant, I'd think you could create an index on (jsonfield #>> '{path1,path2}')::numeric


-- 
john r pierce, recycling bits in santa cruz

pgsql-general by date:

Previous
From: SuperCiccio
Date:
Subject: [GENERAL] Index using in jsonb query
Next
From: vod vos
Date:
Subject: [GENERAL] How to define the limit length for numeric type?