summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorMichael P2011-06-29 23:41:18 +0000
committerMichael P2011-06-29 23:41:18 +0000
commit091b0e828cf0fd5bbd1f9ae58ab96fc983e55d77 (patch)
tree30e2748bd04e6b07fdd043a72c434e01c3f7d632 /src/backend/access/gist/gistproc.c
parent9cf414760f30f6fb377f47ced0d0315460bf85a7 (diff)
Support for GTM-Proxy reconnection
This commit adds support for GTM-Proxy reconnection. After promoting a GTM-Standby instance, it is possible to reorientate Proxy worker threads to the newly-promoted GTM instance. Implemented in gtm_ctl, GTM reconnection uses USR1/USR2 to signal GTM-Proxy main thread or worker threads. If a worker thread receives a USR1 signal, it transmits it to the main thread. After main thread has received USR1 signal, it signals worker threads with USR2. Signal handling is managed by longjump. A new keyword "reconnect" has been added in gtm_ctl. Ex: gtm_ctl reconnect -S gtm_proxy -D $PROXY_DATA -o '-s $STANDBY_HOST -t $STANDBY_PORT' It is expected that new connection parameters to GTM are specified in string -o. Implementation by Koichi Suzuki
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions