pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Shaozhong SHI <shishaozhong@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: How best to create and use associative array type in Postgres?
Date: Wed, 05 Jan 2022 11:24:16 -0500
Message-ID: <299857.1641399856@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+i5JwZRMwu_Mo8wfrS-_VWANG+RpaGEXth_orym-s_2joKKYA@mail.gmail.com>
References: <CA+i5JwYkKoQzWBfrkCLKo7PM-bPrb7cy7jz0W74XHVmCkePqGw@mail.gmail.com>
	<41274.1641394465@sss.pgh.pa.us>
	<CA+i5JwZRMwu_Mo8wfrS-_VWANG+RpaGEXth_orym-s_2joKKYA@mail.gmail.com>

Shaozhong SHI <shishaozhong@gmail.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





view thread (6+ messages)  latest in thread

Message-ID: <299857.1641399856@sss.pgh.pa.us>
Permalink:  ../299857.1641399856@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/299857.1641399856@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, shishaozhong@gmail.com
  Subject: Re: How best to create and use associative array type in Postgres?
  In-Reply-To: <299857.1641399856@sss.pgh.pa.us>
  References: <CA+i5JwYkKoQzWBfrkCLKo7PM-bPrb7cy7jz0W74XHVmCkePqGw@mail.gmail.com> <41274.1641394465@sss.pgh.pa.us> <CA+i5JwZRMwu_Mo8wfrS-_VWANG+RpaGEXth_orym-s_2joKKYA@mail.gmail.com> <299857.1641399856@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox