Thank you for all your recomendations. My conclusion is that at this point, postgres doesn's have a robust way of extracting specific keys from JSON column. In real applications, JSON documents are usually hierarchical and fairly complex. Adding fast data access to parts of the JSON would be a great improvement and keep postgres' leadership in unstructured data space.
-------- Original message --------
From: Pavel Stehule <pavel.stehule@gmail.com>
Date: 5/16/18 8:10 AM (GMT-08:00)
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dmitry Dolgov <9erthalion6@gmail.com>, "David G. Johnston" <david.g.johnston@gmail.com>, reader 1001 <007reader@gmail.com>, Merlin Moncure <mmoncure@gmail.com>, pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: Abnormal JSON query performance