我有一个 Postgresql 9.1 服务器,我想在 Python 上编写一些函数。
有两种方法:plpy或psycopg2。对我来说,在 plpy 中编写函数就像噩梦,很多“准备”和“执行”方法......使用起来更舒服psycopg2,但我关心效率。
plpy
psycopg2
在服务器上使用 psycopg2 是否正确?
postgresql psycopg2 plpython
plpython ×1
postgresql ×1
psycopg2 ×1