Re: Do PostgreSQL have map and set structure(like STL in C++)? - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: Do PostgreSQL have map and set structure(like STL in C++)?
Date
Msg-id alpine.DEB.2.21.1904211918230.29102@lancre
Whole thread Raw
In response to Do PostgreSQL have map and set structure(like STL in C++)?  ("梦旅人" <liubaozhu1258@qq.com>)
List 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.



pgsql-hackers by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: Global snapshots
Next
From: Andrey Borodin
Date:
Subject: Re: Do PostgreSQL have map and set structure(like STL in C++)?