[pgsql-jp: 28512] Q) plperl pg_autotune
Yamada Ken Takeshi
ken @ tydfam.jp
2003年 1月 5日 (日) 10:47:33 JST
山田@町田市です。
久しぶりに 7.3.1 にバージョンを上げて、少しいじってみていますが、
良く分からない事があります。 どなたか、関連記事など教えて頂ければ幸い
です。
1) DBD::PgSPI のコンパイル
DBD-PgSPI-0.01.tar.gz を取って来て Linux (RedHat8.0 on
vmware)でコンパイルしてみましたが、executor/spi.h が見付から
ないと文句を言うので、POSTGRES_HOME=xx/postgresql-7.3.1/src
として、perl Makefile.PL; make; make install して
make test すると、
OS: linux
DBI->connect ........ok
$dbh->do ............ok
DBD::Pg::db do failed: ERROR: RemoveFunction: function
dbd_spi_test() does not exist at test.pl line 70,
<DATA> line 243.
DBD::Pg::db do failed: ERROR: creation of function
failed: require trapped by operation mask at (eval 2)
line 1. at test.pl line 73, <DATA> line 243.
DBD::Pg::db do failed: ERROR: creation of function
failed: require trapped by operation mask at (eval 2)
line 1. at test.pl line 73, <DATA> line 243.
Database handle destroyed without explicit disconnect,
<DATA> line 243.
Database handle destroyed without explicit disconnect,
<DATA> line 243.
make: *** [test_dynamic] error 2
となります。 当然、README にある dbd_pgspi_test() もダメです。
( typo だと思いますが、test.pl に language 'plperlu' という
のがあったので、これは plperl にしています。)
どなたか、plperl を使っておられる方がいらしたら、情報宜しくお願いします。
2) pg_autotune
「やった!」と内心不精な私は喜んじゃったのですが、うまくゆきません。
こっちは FreeBSD-current でやったのですが、単純な pg_ctl stop;...
の所で、postgres がうまく終了していないようです。 ソース見ながら思案中
ですが、どなたか、うまく使っておられる方がいらしたら、ご教授お願いします。
ちなみに usr: pgsql で pg_ctl start/stop は正常に動作しますし、
このプログラムは pgsql で動作させています。
:
100000 tuples done.
Updating the database to be tuned with : shared_buffers = 64,
sort_mem = 512, vacuum_mem = 8192.
Password:
pg_ctl: postmaster does not shut down
pg_ctl: Another postmaster may be running. Trying to start
postmaster anyway.
pg_ctl: cannot start postmaster
Examine the log output.
Connecting to the 'localhost' tuning database...
Connection to tuning database 'pgsql' failed.
FATAL: The database system is shutting down
An error occured when connecting to the database.
正月早々、turbine-2.2 もうまく動作しないし、今年は勉強の年になりそうです。
pgsql-jp メーリングリストの案内