pgpool 之十六 sql 添加 NO LOAD BALANCE
生活随笔
收集整理的這篇文章主要介紹了
pgpool 之十六 sql 添加 NO LOAD BALANCE
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
pgpool 下,有時查詢必須在 master 上查詢,這時就需要在 select 前面添加 /NO LOAD BALANCE/
Note: If you don’t want a query that qualifies for the load balancing to be load balanced by Pgpool-II, you can put /*NO LOAD BALANCE*/ comment before the SELECT statement. This will disable the load balance of the particular query and Pgpool-II will send it to the master node (the primary node in Master Slave mode).
SQL> /*NO LOAD BALANCE*/ select * from dept;參考:
http://www.pgpool.net/docs/37/en/html/runtime-config-load-balancing.html
總結(jié)
以上是生活随笔為你收集整理的pgpool 之十六 sql 添加 NO LOAD BALANCE的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ICC2: clock balance
- 下一篇: Ubuntu 20.04配置 bond