Re: [NOVICE] [SQL] JSON TO POSTGRE TABLE - Mailing list pgsql-general

From Felipe Santos
Subject Re: [NOVICE] [SQL] JSON TO POSTGRE TABLE
Date
Msg-id CAPYcRiXCLKvr-iO6YJ18KS57uDLJ9k=vTx9wt5MLaBtoYNuObA@mail.gmail.com
Whole thread Raw
In response to Re: [SQL] JSON TO POSTGRE TABLE  (Shujie Shang <sshang@pivotal.io>)
List pgsql-general



Hi, 
I want to ask a question about json index.
Can I make a index on a field of a json column?
e.g, for table 'json_tab' you given, can I run something like "create index 'json_index' on json_tab::key"?


Yes.


Also, in 9.4 we got JSONB data type, which may enhance JSON fields performance. 

pgsql-general by date:

Previous
From: Hector Vass
Date:
Subject: Re: [SQL] Link Office Word form document with data from PostgreSQL
Next
From: Deven Phillips
Date:
Subject: Muti-table join and roll-up aggregate data into nested JSON?