on-internet
← Community

How do I dump a vector table to a destination database with pgdump and psql?

Stack Overflow ·

I am trying to migrate between DB instances using the pg_dump util, but running into some odd behavior where it tries to create the types and operators belonging to pgvector (and the extension itself if I have not already created it!) under a schema named after the old db: % pg_dump -h localhost -U postgres -p 5432 -t my_resnet_embeddings old_db | psql -h foo.bar.com -U postgres -p 5432 new_db SET SET SET SET SET set_config ------------ (1 row) SET SET SET SET SET SET ERROR: type "old_db.vector" does not exist LINE 3: embedding old_db.vector(2048) My next move is creating the table at the dest

Comments

Sign in or sign up to comment and upvote.

No comments yet.