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.