[pgsql-jp: 38141] Re: COPYによるデータ取り込みでの警告(?)メッセージ
Hisashi Chiba
ch-999 @ beige.plala.or.jp
2007年 3月 14日 (水) 12:33:03 JST
千葉です。
YuGo wrote:
> 現状25168必要ということですよね。結構でかいような気がします。
>
> データベースにアクセスがなさそうなとき、フルバキュームしてみてもう一度同
> じくメッセージを見てください。
> $vacuumdb -f -a -z -v
>
> そんな時なければ普通にバキュームしてください。
> $vacuumdb -a -z -v
>
> これで数値が変わるかどうか。
とりあえず、実行した結果です。
% vacuumdb -f -z -v db1 | tee vacuumdb.log
INFO: free space map contains 24994 pages in 80 relations
DETAIL: A total of 20000 page slots are in use (including overhead).
25216 page slots are required to track all free space.
Current limits are: 20000 page slots, 1000 relations, using 182 KB.
NOTICE: number of page slots needed (25216) exceeds max_fsm_pages (20000)
HINT: Consider increasing the configuration parameter "max_fsm_pages"
to a value over 25216.
VACUUM
データベースを指定した時は全領域を対象に出来ないので、
かえって数値があがっているのでしょうか。
さらに、-fを外し、-aを付けて実行すると
% vacuumdb -a -z -v | tee vacuumdb.log2
INFO: free space map contains 21464 pages in 102 relations
DETAIL: A total of 20000 page slots are in use (including overhead).
70448 page slots are required to track all free space.
Current limits are: 20000 page slots, 1000 relations, using 182 KB.
NOTICE: number of page slots needed (70448) exceeds max_fsm_pages (20000)
HINT: Consider increasing the configuration parameter "max_fsm_pages"
to a value over 70448.
VACUUM
その後再度、データベースを指定して実行すると、
% vacuumdb -f -z -v db1 | tee vacuumdb.log3
INFO: free space map contains 21453 pages in 102 relations
DETAIL: A total of 20000 page slots are in use (including overhead).
70464 page slots are required to track all free space.
Current limits are: 20000 page slots, 1000 relations, using 182 KB.
NOTICE: number of page slots needed (70464) exceeds max_fsm_pages (20000)
HINT: Consider increasing the configuration parameter "max_fsm_pages"
to a value over 70464.
VACUUM
どんどん悪くなっていく気がしますが。
pgsql-jp メーリングリストの案内