Re: How to make a map in pg kernel?

From: Artur Zakirov <zaartur(at)gmail(dot)com>
To: jacktby jacktby <jacktby(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: How to make a map in pg kernel?
Date: 2023-10-06 14:38:29
Message-ID: CAKNkYny1nRYHz0EWXaF30VdGweR1L70sKkT-ensQ6U02bvhdCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

On Thu, 5 Oct 2023 at 16:42, jacktby jacktby <jacktby(at)gmail(dot)com> wrote:
>
> Hi, I’m writing some kernel codes in pg15, and now I need to make a map struct, I know c-lang doesn’t support this, so does pg support an internal struct? Hopefully your replies.

PostgreSQL has hash tables:
https://github.com/postgres/postgres/blob/REL_16_0/src/include/utils/hsearch.h
This is not exactly a map struct. But it might be suitable for your case.

--
Artur

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2023-10-06 14:55:24 Re: why generated columsn cannot be used in COPY TO?
Previous Message Andreas Kretschmer 2023-10-06 14:04:33 Re: why generated columsn cannot be used in COPY TO?