我想在postgresql上安装plpython以获得python触发器
当我恢复我的数据库(我的数据库有一些python触发器)这个错误apears(错误消息太大所以我粘贴它的第一行):
C:/Program Files/PostgreSQL/9.0/bin/pg_restore.exe
--host localhost
--port 5432
--username "postgres"
--dbname "mfa"
--verbose
"%HOMEPATH%/Desktop/EhSAA/MFA/db_schema/mydb.backup"
pg_restore: connecting to database for restore
pg_restore: creating SCHEMA public
pg_restore: creating COMMENT SCHEMA public
pg_restore: creating PROCEDURAL LANGUAGE plpgsql
pg_restore: creating PROCEDURAL LANGUAGE plpythonu
pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 315; 2612 16595
PROCEDURAL LANGUAGE plpythonu postgres
pg_restore: [archiver (db)] could not execute query:
ERROR: could not load library "C:/Program Files/PostgreSQL/9.0/lib/plpython.dll":
The specified module could not be …Run Code Online (Sandbox Code Playgroud) 我已经制作了一个图像处理模块,将模型定义Pixel为Color和Location.Pixel,Color和,Location派生Eq,因为我可能想要比较多个图像之间的像素.
Eq适合我比较像素的需要,看看它们是否完全相同,这就是我想要的.实例化的一个奇怪的副作用Eq是,2比较不同于具有相同的像素Location与任一<=或>=在结果中True,但False为==,<,和>.
data Color = Color { red :: Int
, green :: Int
, blue :: Int
, alpha :: Int
} deriving ( Show, Eq )
data Location = Location { x :: Int
, y :: Int
} deriving ( Show, Eq, Ord )
data …Run Code Online (Sandbox Code Playgroud) comparison ×1
deriving ×1
ghc ×1
haskell ×1
install ×1
plpython ×1
postgresql ×1
python ×1
typeclass ×1