You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE SERVER foreign_server
FOREIGN DATA WRAPPER postgres_fdw
OPTIONS (host 'host.docker.internal', port '28816', dbname 'vectors', sslmode 'disable', use_remote_estimate 'true', extensions 'vector');
GRANT USAGE ON FOREIGN SERVER foreign_server TO local_user;
If not config the extensions='vector' at CREATE SERVER step of local machine
Then a full table scan will be sent to remote, unable to use an index
If config the extensions='vector' at CREATE SERVER step of local machine
It requires the extension at "local" and "remote" is installed in same schema
postgres=> EXPLAIN verbose select*from foreign_test ORDER BY embedding <->'[0.40671515, 0.24202824, 0.37059402]'LIMIT1;
ERROR: operator does not exist: vectors.vector public.<-> unknown
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
CONTEXT: remote SQL command: EXPLAIN SELECT id, embedding FROMvectors.testORDER BY (embedding OPERATOR(public.<->) '[0.40671515,0.24202824,0.37059402]') ASC NULLS LAST
pgvector/pgvector#508
For:
Possible Methods:
Hook / Rewrite--> Different name mapping will fail to push down to indexThe text was updated successfully, but these errors were encountered: