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

From: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: How best to create and use associative array type in Postgres?
Date: 2022-01-05 20:26:21
Message-ID: CA+i5JwZEVzxPyMo7VEZkn+w8Kh6J5RkrF+vRd65Mf0_G1CNLzw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Have a look at this one.

GitHub - theory/kv-pair: A key/value pair data type for PostgreSQL
<https://github.com/theory/kv-pair>

There is no documentation on how to use it.

Regards,

David

On Wed, 5 Jan 2022 at 16:24, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Shaozhong SHI <shishaozhong(at)gmail(dot)com> writes:
> > What do you think this attempt by using create type and create a
> function?
> > Managing Key/Value Pairs in PostgreSQL (justatheory.com)
> > <https://justatheory.com/2010/08/postgres-key-value-pairs/>
>
> The date alone should suggest to you that there might be
> better ways to do it by now.
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2022-01-05 20:34:50 Re: How best to create and use associative array type in Postgres?
Previous Message Tom Lane 2022-01-05 19:04:26 Re: Trouble DROP'ing a ROLE, despite REVOKE'ing its privileges