From: arif-js (@arif-js) <noreply+arif-js@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #1030: Added vector_dims for sparsevec
Date: Sun, 20 Sep 2026 07:18:22 +0000
Message-ID: <gh-pgvector-pgvector-1030-c5748353123@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-1030@github.com>
References: <gh-pgvector-pgvector-1030@github.com>
> Hi @arif-js, can you share the use case for this? This and other vector methods were excluded due to limited usefulness.
Hey @ankane! Understood. I noticed it was missing for sparsevec. Though I haven't verified it in practice, the only case I can think of is checking dims on an untyped sparsevec column too large to cast to vector, and a typmod likely covers that. Happy to close if you'd rather keep the surface as is.