問題その1ImportError: No modulenamed bottoleカレントに配置したbottole.pyが読み込めない普通はカレントディレクトリは指定しなくてもいいPostgreSQLの子プロセスは$PGDATAがカレントpg2layer_db=# CREATE OR REPLACE FUNCTION test() RETURNS text ASpg2layer_db# $$pg2layer_db$# pg2layer_db$# import bottolepg2layer_db$# $$pg2layer_db# LANGUAGE 'plpythonu' VOLATILE;CREATE FUNCTIONpg2layer_db=# pg2layer_db=# select test();ERROR: ImportError: No module named bottole CONTEXT: Traceback (most recent call last): PL/Python function "test", line 3, in <module> import bottolePL/Python function "test"