The pgvector support introduced in v1.23.0 doesn't seem to play nicely with the :copyfrom command. I get the following error with the setup described in this issue: ERROR: vector cannot have more than 16000 dimensions (SQLSTATE 54000). Even though the inserted pgvector has the dimension of 1024, same as the column.
When I use the following query using :exec with that same vector, then it works without problems:
Version
1.27.0
What happened?
The pgvector support introduced in v1.23.0 doesn't seem to play nicely with the
:copyfrom
command. I get the following error with the setup described in this issue:ERROR: vector cannot have more than 16000 dimensions (SQLSTATE 54000)
. Even though the inserted pgvector has the dimension of 1024, same as the column.When I use the following query using :exec with that same vector, then it works without problems:
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
can't use pgvector
Alternatively, here is the docker-compose.yml I use for local dev to have pgvector installed:
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
Workaround
The workaround I'm using to still insert many vectors at once is the :batchexec command, which works fine with pgvector.