pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #602: Memory allocation failure at CREATE EXTENSION.
Date: Fri, 21 Jun 2024 17:31:07 +0000
Message-ID: <gh-pgvector-pgvector-602-c2183160349@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-602@github.com>
References: <gh-pgvector-pgvector-602@github.com>

@pashkinelfe It'd be good to understand how this happens, since Postgres allocates [an extra 100K bytes](https://github.com/postgres/postgres/blob/master/src/backend/storage/ipc/ipci.c#L112) for small allocations.

We could request the shared memory up front when the extension is part of `shared_preload_libraries` (without making it required), but I'm not sure if it's worth the complexity.

view thread (8+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-602-c2183160349@github.com>
Permalink:  ../gh-pgvector-pgvector-602-c2183160349@github.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