Re: Create and access a dictionary type

From: Tomas Vondra <tomas(dot)vondra(at)enterprisedb(dot)com>
To: Shaozhong SHI <shishaozhong(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Create and access a dictionary type
Date: 2022-01-05 13:22:24
Message-ID: c699f135-2326-0fda-6623-850da6101bc8@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/5/22 14:17, Shaozhong SHI wrote:
> Any examples in Postgres to create a dictionary type to store and access
> key value pairs?
>

I'd say JSONB can be used as an associative array, and e.g. in Python
can map to dict data type.

regards

--
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shaozhong SHI 2022-01-05 13:36:19 Re: Create and access a dictionary type
Previous Message Tomas Vondra 2022-01-05 13:20:32 Re: Postgis - geography function