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

From: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: How best to create and use associative array type in Postgres?
Date: 2022-01-05 12:10:50
Message-ID: CA+i5JwYkKoQzWBfrkCLKo7PM-bPrb7cy7jz0W74XHVmCkePqGw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In Oracle, one can create and use associative array. For instance,
TYPE FID_MEASURE IS TABLE OF NUMBER INDEX BY VARCHAR2(38);
NODES_WAITING FID_SET;

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

Or, what is the best/most efficient equivalent in Postgres?

Regards,

David

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shaozhong SHI 2022-01-05 13:17:33 Create and access a dictionary type
Previous Message hubert depesz lubaczewski 2022-01-05 11:34:26 Re: Can we use sql language to create a function in Postgres?