Re: Create and access a dictionary type - Mailing list pgsql-general

From Ron
Subject Re: Create and access a dictionary type
Date
Msg-id def33987-b02b-c87d-f854-444989b80610@gmail.com
Whole thread Raw
In response to Re: Create and access a dictionary type  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Responses Re: Create and access a dictionary type  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
List pgsql-general
On 1/5/22 7:22 AM, Tomas Vondra wrote:
> 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.

The question confuses me.  Why isn't "create a table with Primary Key" the 
answer to "Any examples in Postgres to create a dictionary type to store and 
access key value pairs?"

-- 
Angular momentum makes the world go 'round.



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: How best to create and use associative array type in Postgres?
Next
From: Tomas Vondra
Date:
Subject: Re: Create and access a dictionary type