From: David E. W. <da...@ju...> - 2014-02-06 01:28:43
|
On Feb 4, 2014, at 5:36 PM, Koichi Suzuki <koi...@gm...> wrote: > 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. I don’t think I need to be *that* anal. If someone creates a table named pgxc_class in pg_catalog then the problem is theirs, IMHO. Thanks, David |