pgvector / pgvector-python

pgvector support for Python
MIT License
979 stars 63 forks source link

Support registration via psycopg2.extras cursor factories #89

Closed ohad-ivix closed 3 months ago

ohad-ivix commented 3 months ago

The current registration logic assumes cursors are created using the default cursor factory. This patch adds support for other factories provided shipped in psycopg2.extras

Please let me know what you think, or if there's anything that you'd like changed

ankane commented 3 months ago

Hi @ohad-ivix, thanks for the PR! Improved support in the commit above.