Major version released yearly September/October, supported for 5 years.
Syntax
SELECT content -> 'type' AS content_type FROM rich_content;SELECT DINSTINCT CAST (content -> 'type' AS TEXT) -- cast JSON objects to textAS content_type FROM rich_content;SELECT DINSTINCT content ->> 'type' -- ->> casts as textAS content_type FROM rich_content;SELECT content -> 'dimensions' AS content_type FROM rich_contentWHERE content ->> 'diemensions' IS NOT NULLSELECT content -> 'dimensions' ->> 'height' AS height, content -> 'dimensions' ->> 'width' AS widthFROM rich_content WHERE content -> 'dimensions' IS NOT NULL;EXPLAIN ... -- stats
CREATE INDEX ON comments (board_id);CREATE UNIQUE INDEX username_idx ON users(username);