From: Koichi S. <koi...@gm...> - 2014-02-05 01:36:55
|
Because XC didn't change libpq at all, I cannot find explicit way if you're connecting to PG or XC. Even psql binary from PG works with XC. I'd suggest to test if pgxc_class, pgxc_node and pgxc_nodegroup catalog is available, which are all XC specifyc. To avoid name conflict (you can create table pgxc_class in PG), you can specify pgxc_class oid value, which will be release-specific though. Regards; --- Koichi Suzuki 2014-02-05 David E. Wheeler <da...@ju...>: > On Feb 4, 2014, at 5:27 PM, Koichi Suzuki <koi...@gm...> wrote: > >> You can detect a coordinator in the same way as vanilla PostgreSQL through psql: >> >> SELECT 1; >> >> They work when GTM is up and the coordinator is connected to GTM. >> Anyway, without GTM up and running, the cluster won't work. >> >> Please note that pgxc_ctl monitor command goes directly to datanodes >> because it configures all the components. > > No, what I want to know is if I have connected to XC and not PG. > > D > |