From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #183: Question: Size on a vector column type
Date: Tue, 11 Jul 2023 13:46:20 +0000
Message-ID: <gh-pgvector-pgvector-183-c1630866162@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-183@github.com>
References: <gh-pgvector-pgvector-183@github.com>
@LorneCurrie You'll have to create a new column. The `vector` data type checks the dimensionality before allowing an insert/update.
If you need variable-width vectors within the same column, you can use the PostgreSQL-native array type (e.g. `real[]` for 4-byte floats), but you would not be able to use the indexing mechanisms that pgvector provides.