Memory Postgresql 8.4->9.1:分析详细信息;->共享内存不足

Memory Postgresql 8.4->9.1:分析详细信息;->共享内存不足,memory,statistics,postgresql-9.1,Memory,Statistics,Postgresql 9.1,仅供参考,这个问题也发布在PG普通邮件列表上 从8.4迁移到9.1后,出现了一个问题 当我们玩的时候: ANALYSE VERBOSE; 统计所有数据库,所有表中有500个表和1个TO数据 我们现在有这样的信息: org.postgresql.util.PSQLException: ERROR: out of shared memory Indice : You might need to increase max_locks_per_transaction. 在8.4中,没有错误,服务器

仅供参考,这个问题也发布在PG普通邮件列表上

从8.4迁移到9.1后,出现了一个问题

当我们玩的时候:

ANALYSE VERBOSE; 
统计所有数据库,所有表中有500个表和1个TO数据

我们现在有这样的信息:

org.postgresql.util.PSQLException: ERROR: out of shared memory Indice : You might need to increase max_locks_per_transaction.
在8.4中,没有错误,服务器上有我们特定的postgresql.conf配置:

default_statistics_target = 200
maintenance_work_mem = 1GB
constraint_exclusion = on
checkpoint_completion_target = 0.9
effective_cache_size = 7GB
work_mem = 48MB
wal_buffers = 32MB
checkpoint_segments = 64
shared_buffers = 2304MB
max_connections = 150
random_page_cost = 2.0
max_locks_per_transaction = 128 **
每个事务的最大锁定数在64?之前是默认值,我们已经根据错误提示尝试增加它

我们已经尝试增加linux共享内存。您有什么建议吗?

我会尝试降低维护工作量,尝试256MB,并将每个事务的最大锁数设置为更高的值,例如1024