From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #693: Question: why is pgvector skipping vector dimenstion check when `typmod` is `-1`
Date: Thu, 10 Oct 2024 17:40:41 +0000
Message-ID: <gh-pgvector-pgvector-693-c2405697002@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-693@github.com>
References: <gh-pgvector-pgvector-693@github.com>
The typmod is what differentiates fixed vs variable, so if it's `-1`, it's considered variable.
Postgres can pass `-1` to the `INPUT` function and then cast, which is why the code handles that case.