如何通过 SQL 命令更改 Postgres 的 max_connections [英] How to change max_connections for Postgres through SQL command

查看:66
本文介绍了如何通过 SQL 命令更改 Postgres 的 max_connections的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个托管的 PostgreSQL,无法访问系统或 *.conf 文件.

We have a hosted PostgreSQL, with no access to the system or *.conf files.

我确实有管理员访问权限,可以使用 Oracle SQL 开发人员连接到它.我可以运行任何命令来增加 max_connections.所有其他参数似乎都可以共享内存,缓冲区可以容纳更多连接,因此没有问题.

I do have a admin access and can connect to it using Oracle SQL developer. Can I run any command to increase the max_connections. All other parameters seems to be ok shared mem and buffers can hold more connections so there is not problem there.

推荐答案

显然,我们使用的托管 Postgres 不提供此选项.(compose.io)

Apparently, the hosted Postgres we are using does not provide this option. (compose.io)

因此解决方法是使用 pgbouncer 来更好地管理您的连接.

So the work around is to use a pgbouncer to manage you connections better.

这篇关于如何通过 SQL 命令更改 Postgres 的 max_connections的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆