Index using in jsonb query

From: SuperCiccio <sc_030268(at)yahoo(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Index using in jsonb query
Date: 2017-03-11 23:55:43
Message-ID: 3c94dbd2-9efe-438c-cd25-b00af8f09010@yahoo.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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;

Thanks

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2017-03-12 01:20:40 Re: Index using in jsonb query
Previous Message Alexander Farber 2017-03-11 13:09:23 Re: CHECK for 2 FKs to be non equal