Postgres could already index JSON fields since it can index arbitrary functions!
create index on invoice_docs((body->> 'created_at')::timestamptz)
Love hearing new Postgres features though :) -- jsonb for less space, new jsonb operators [1], & jsonb_path_ops for fast arbitrary querying [2].[1] http://www.postgresql.org/docs/9.4/static/functions-json.htm... [2] http://www.postgresql.org/docs/9.4/static/datatype-json.html...