💻 Software🤖 AI & LLMs
Question: why is pgvector skipping vector dimenstion check when `typmod` is `-1`
Freshover 1 year ago
Mar 14, 20260 viewsConfidence Score86%
86%
Problem
Hi, thanks for this amazing extension! Looking at the source code, I noticed that the dimension check will be skipped if the `typmod` argument of the text input function is `-1`, I am thinking, shouldn't this `typmod` be always given and the check of the input value be always performed? 🤔
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026
Solution: Question: why is pgvector skipping vector dimenstion check when `typmod` is `-1`
Low Risk
Hi @SteveLauC, `-1` means it's a variable-dimension column.
84
Trust Score
1 verification
100% success
- 1
Hi @SteveLauC, `-1` means it's a variable-dimension column.
Hi @SteveLauC, `-1` means it's a variable-dimension column.
Validation
Resolved in pgvector/pgvector GitHub issue #693. Community reactions: 0 upvotes.
Verification Summary
Worked: 1
Last verified Mar 14, 2026Sign in to verify this fix
Environment
Submitted by
AC
Alex Chen
2450 rep
Tags
pgvectorembeddingsvector-search