我的Openshift在线墨盒上有Postgres 9.2.使用Pgadmin3,我已经启用(通过勾选方框)postgresql.conf的autovuum设置.但是,autovacuum似乎没有运行.
这是我有的:
ps -ef | grep -i vacuum
没有显示自动真空过程.
使用psql控制台,show autovacuum表示其值为ON
使用psql控制台,SELECT schemaname, relname, last_vacuum, last_autovacuum from FROM pg_stat_user_tables;在last_vacuum和last_autovacuum列中没有给出任何值,即使我使用pgadmin3进行了手动真空维护功能.
pgAdminIII中db的属性选项卡表示'未运行'的AUTOVACUUM值
我错过了什么?
编辑
我也试图在服务器上找到文件时无法访问Openshift Online上的postgresql.conf - 希望手动编辑文件而不是使用pgAdminIII.
- 发现这个https://www.openshift.com/forums/openshift/how-do-i-set-maxpreparedtransactions-on-my-postgresql-cartridge 我现在能够查看/编辑我的postgresql.conf.显然autovacuum已经打开,因此conf具有正确的设置.
当pg_ctl restart -m fast 我遇到问题时
LOG: could not bind socket for statistics collector: Permission denied
LOG: trying another address for the statistics collector
LOG: could not bind socket for statistics collector: Permission denied
LOG: trying another address for the statistics collector
LOG: could not …Run Code Online (Sandbox Code Playgroud) 最近,在没有更改代码/库的情况下,我error_proto: line too long从hotmail收件箱中读取电子邮件(poplib.retr)时开始出现python 错误.我使用的是Python 2.7.8版.我知道长行可能会导致此错误.但有没有办法绕过这个或我需要的某个版本.感谢您提出的任何建议/指示.
这是一个回溯错误:
"/opt/rh/python27/root/usr/lib64/python2.7/poplib.py", line 232, in retr\n return self._longcmd(\'RETR %s\' % which)\n',
' File "/opt/rh/python27/root/usr/lib64/python2.7/poplib.py", line 167, in _longcmd\n return self._getlongresp()\n',
' File "/opt/rh/python27/root/usr/lib64/python2.7/poplib.py", line 152, in _getlongresp\n line, o = self._getline()\n',
' File "/opt/rh/python27/root/usr/lib64/python2.7/poplib.py", line 377, in _getline\n raise error_proto(\'line too long\')\n',
'error_proto: line too long\n'
Run Code Online (Sandbox Code Playgroud)