Re: How best to create and use associative array type in Postgres?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How best to create and use associative array type in Postgres?
Дата
Msg-id 41274.1641394465@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How best to create and use associative array type in Postgres?  (Shaozhong SHI <shishaozhong@gmail.com>)
Ответы Re: How best to create and use associative array type in Postgres?  (Shaozhong SHI <shishaozhong@gmail.com>)
Список pgsql-general
Shaozhong SHI <shishaozhong@gmail.com> writes:
> How best to create and use associative array type in Postgres?

I think the closest thing you'd find to that is jsonb, or
contrib/hstore if you'd like something with a bit less complexity.
The notation is unlikely to look much like Oracle, but they
both have the ability to store sets of key/value pairs.

https://www.postgresql.org/docs/current/datatype-json.html
https://www.postgresql.org/docs/current/hstore.html

            regards, tom lane



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

Предыдущее
От: Thomas Michael Engelke
Дата:
Сообщение: Replicate consistent snapshot to a second PG instance using FDWs
Следующее
От: Shaozhong SHI
Дата:
Сообщение: Re: How best to create and use associative array type in Postgres?