【问题标题】:How to route particular select query on master in pgpool 3 postgres...?如何在 pgpool 3 postgres 中路由特定的选择查询...?
【发布时间】:2016-07-01 13:48:27
【问题描述】:

我的查询是,如何在pgpool 的主服务器上路由特定的选择查询。我在 pgpool.conf 中尝试过 black_function_list 参数,但没有成功。

另外,我的pgpool 模式是流式传输且负载平衡已开启

【问题讨论】:

标签: postgresql postgresql-9.5 pgpool


【解决方案1】:

pgpool 的 black_function_list 参数只适用于函数。对于其他查询,您可以在查询字符串中使用 /NO LOAD BALANCE/ 前缀注释,以确保它应该落在主 PostgreSQL 节点上。

For example    
postgres=#/*NO LOAD BALANCE*/ SELECT * from abc;

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-15
    • 2015-04-06
    • 1970-01-01
    • 1970-01-01
    • 2022-11-24
    相关资源
    最近更新 更多