Re: Create and access a dictionary type

Поиск
Список
Период
Сортировка
От Shaozhong SHI
Тема Re: Create and access a dictionary type
Дата
Msg-id CA+i5JwYxD6ND8+WW+vLkO_9sst2wjbYJ6LtZxcZ=jOgm9qqiwg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Create and access a dictionary type  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Ответы Re: Create and access a dictionary type  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Список pgsql-general
I just checked operators.  I could not find any operator to set a new value given a key.

Regards,

David

On Wed, 5 Jan 2022 at 13:22, Tomas Vondra <tomas.vondra@enterprisedb.com> 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.


regards

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

В списке pgsql-general по дате отправления:

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: Create and access a dictionary type
Следующее
От: Thomas Michael Engelke
Дата:
Сообщение: Replicate consistent snapshot to a second PG instance using FDWs