plugin dev, oid to pointer map

From: Attila Soki <atiware(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: plugin dev, oid to pointer map
Date: 2016-05-29 20:10:04
Message-ID: BCD625B4-A1CC-4D2D-BFD1-BE0B824DF061@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,

i am about to begin with postgresql plugin development.
Currently i'm trying to become somewhat familiar with the postgresql sources.

Without going too deep into details about the plugin, i want to use
many Oid to pointer relations.
The pointer is a pointer to my own struct (allocated with palloc).
There will be approx. 1000 unique oid/pointer pairs.

Basically, what i want is, to be able to get the pointer to my struct by Oid.

Is there is a suitable hashmap or key-value storage solution in the pg code?
if so, please point me to the right part of the source.

thanks,
Attila Soki

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Julien Rouhaud 2016-05-30 00:43:16 Re: plugin dev, oid to pointer map
Previous Message Karsten Hilbert 2016-05-29 19:04:47 Re: Slides for PGCon2016; "FTS is dead ? Long live FTS !"