pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to make a map in pg kernel?
2+ messages / 2 participants
[nested] [flat]
* How to make a map in pg kernel?
@ 2023-10-05 14:33 jacktby jacktby <jacktby@gmail.com>
2023-10-06 14:38 ` Re: How to make a map in pg kernel? Artur Zakirov <zaartur@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: jacktby jacktby @ 2023-10-05 14:33 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How to make a map in pg kernel?
2023-10-05 14:33 How to make a map in pg kernel? jacktby jacktby <jacktby@gmail.com>
@ 2023-10-06 14:38 ` Artur Zakirov <zaartur@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Artur Zakirov @ 2023-10-06 14:38 UTC (permalink / raw)
To: jacktby jacktby <jacktby@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
Hello,
On Thu, 5 Oct 2023 at 16:42, jacktby jacktby <jacktby@gmail.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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2023-10-06 14:38 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-10-05 14:33 How to make a map in pg kernel? jacktby jacktby <jacktby@gmail.com>
2023-10-06 14:38 ` Artur Zakirov <zaartur@gmail.com>
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