14.05.2013 Views

PostgreSQL as a Schemaless Database.

PostgreSQL as a Schemaless Database.

PostgreSQL as a Schemaless Database.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CREATE TABLE blog {<br />

post json<br />

}<br />

CREATE INDEX post_pk_idx ON<br />

blog((get_json_key(post, ‘post_id’)::BIGINT));<br />

CREATE INDEX post_date_idx ON<br />

blog((get_json_key(post, ‘post_date’)::TIMESTAMPTZ));

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!