PostgreSQL
postgresql.org › docs › 9.5 › functions-json.html
PostgreSQL: Documentation: 9.5: JSON Functions and Operators
February 11, 2021 - Note: There are parallel variants of these operators for both the json and jsonb types. The field/element/path extraction operators return the same type as their left-hand input (either json or jsonb), except for those specified as returning text, which coerce the value to text.
00:56
#25 PostgreSQL - JSONB, contains operator to work with ...
00:56
#25 PostgreSQL - JSONB, contains operator to work with JSONB data.
05:05
How to store and query JSON data in Postgres - YouTube
PostgreSQL jsonb Arrow Operator Tutorial for Developers
23:19
Even JSONB In Postgres Needs Schemas | POSETTE 2024 - YouTube
Google Groups
groups.google.com › g › sqlalchemy › c › 7gBF85TLZpM
postgresql, jsob and like operator
Hello, I'm using Postgresql and JSONB column. I would like to write a query using ORM that will generate such SQL query: SELECT id,name,details FROM Device WHERE details::text LIKE '�%'; where details is of JSONB type and it is converted to text and then like operator is used.
Medium
p10.medium.com › querying-jsonb-in-postgres-which-operator-to-use-and-when-86aee4e6d419
Querying & indexing JSONB in Postgres - which operator to use and when ? | by P10 | Medium
June 17, 2025 - When I started working with JSONB I was confused by the variety of operators @>, ->, ->> and multiple ways to query the same fields. And even more puzzling was figuring out how indexing works, and why one query would use the index while another (querying the same field!), won’t. In this post I have put together what I learned so far. While there is much more to discover , I hope this should serve as a gentle , practical introduction to querying jsonB in postgres.
Postgres Professional
postgrespro.com › docs › postgresql › 12 › functions-json
PostgreSQL : Documentation: 12: 9.15. JSON Functions and Operators : Postgres Professional
See also Section 9.20 for the aggregate function json_agg which aggregates record values as JSON, the aggregate function json_object_agg which aggregates pairs of values into a JSON object, and their jsonb equivalents, jsonb_agg and jsonb_object_agg. Some further operators also exist only for jsonb, as shown in Table 9.45.
Postgres Professional
postgrespro.com › docs › postgresql › current › functions-json
PostgreSQL : Documentation: 18: 9.16. JSON Functions and Operators : Postgres Professional
The comparison operators follow the ordering rules for B-tree operations outlined in Section 8.14.4. See also Section 9.21 for the aggregate function json_agg which aggregates record values as JSON, the aggregate function json_object_agg which aggregates pairs of values into a JSON object, and their jsonb equivalents, jsonb_agg and jsonb_object_agg.
ScaleGrid
scalegrid.io › blog › using-jsonb-in-postgresql-how-to-effectively-store-index-json-data-in-postgresql
JSONB PostgreSQL: How To Store & Index JSON Data
November 8, 2024 - That doesn’t work since the ‘->’ operator returns a JSONB type. So we need to use something like this: demo=# select * from books where (data->'criticrating')::int4 > 4; If you’re using a version before PostgreSQL 11, it gets ugly.
PostgreSQL
postgresql.org › docs › current › datatype-json.html
PostgreSQL: Documentation: 18: 8.14. JSON Types
August 13, 2026 - Such data can also be stored as text, but the JSON data types have the advantage of enforcing that each stored value is valid according to the JSON rules. There are also assorted JSON-specific functions and operators available for data stored in these data types; see Section 9.16. PostgreSQL offers two types for storing JSON data: json and jsonb.
Address: 178 Howard Place, Gulf, Washington, 702
Rip Tutorial
riptutorial.com › using jsonb operators
postgresql Tutorial => Using JSONb operators
DROP DATABASE IF EXISTS books_db; CREATE DATABASE books_db WITH ENCODING='UTF8' TEMPLATE template0; DROP TABLE IF EXISTS books; CREATE TABLE books ( id SERIAL PRIMARY KEY, client TEXT NOT NULL, data JSONb NOT NULL ); INSERT INTO books(client, data) values ( 'Joe', '{ "title": "Siddhartha", "author": { "first_name": "Herman", "last_name": "Hesse" } }' ),( 'Jenny', '{ "title": "Dharma Bums", "author": { "first_name": "Jack", "last_name": "Kerouac" } }' ),( 'Jenny', '{ "title": "100 años de soledad", "author": { "first_name": "Gabo", "last_name": "Marquéz" } }' ); ... The -> operator returns the original JSON type (which might be an object), whereas ->> returns text.
Postgres Professional
postgrespro.com › docs › postgresql › 13 › functions-json
PostgreSQL : Documentation: 13: 9.16. JSON Functions and Operators : Postgres Professional
The comparison operators follow the ordering rules for B-tree operations outlined in Section 8.14.4. See also Section 9.21 for the aggregate function json_agg which aggregates record values as JSON, the aggregate function json_object_agg which aggregates pairs of values into a JSON object, and their jsonb equivalents, jsonb_agg and jsonb_object_agg.
Postgres Professional
postgrespro.com › docs › postgresql › 9.4 › functions-json
PostgreSQL : Documentation: 9.4: JSON Functions and Operators : Postgres Professional
Note: There are parallel variants of these operators for both the json and jsonb types. The field/element/path extraction operators return the same type as their left-hand input (either json or jsonb), except for those specified as returning text, which coerce the value to text.