Re: Do PostgreSQL have map and set structure(like STL in C++)?

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: ?????? <liubaozhu1258(at)qq(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Do PostgreSQL have map and set structure(like STL in C++)?
Date: 2019-04-21 17:22:20
Message-ID: alpine.DEB.2.21.1904211918230.29102@lancre
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hello,

> I want to add a feature in PostgreSQL, and I need use map structure and
> set structure(like STL in C++). Do PostgreSQL have realized these
> structures? Where can I find the functions? What I need in the code is
> just like this: map<char*, set<char*>>, set<char*>

You are looking for a hash table, see under "src/backend/utils/hash/".

--
Fabien.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Borodin 2019-04-21 17:22:34 Re: Do PostgreSQL have map and set structure(like STL in C++)?
Previous Message Andrey Borodin 2019-04-21 17:13:21 Re: Global snapshots