I'm working on a pljava module. In it, I'd like to cache some allocated structures (allocated using TopMemoryContext) using a string as the key. I need a hash or binary-search table with dynamic size where I can store arbitrary structures and then find them using strings. Typical size is less than 100 entries and performance will be an issue. I'm sure something like this exists in postgres but I haven't been able to find it. Please point me in the right direction. Thanks, Thomas Hallgren
"Thomas Hallgren" <thhal@mailblocks.com> writes: > I'm working on a pljava module. In it, I'd like to cache some allocated > structures (allocated using TopMemoryContext) using a string as the key. I > need a hash or binary-search table with dynamic size where I can store > arbitrary structures and then find them using strings. Take a look at src/backend/utils/hash/dynahash.c -Neil
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера