|
From: Lin W. <lin...@gm...> - 2014-03-02 05:19:56
|
Hi,
first I create user1 then use user1 create a node; seceond, I use
'set role wln' to return the user of the superuser of cluster; last , I
want to use 'drop user user1;' to drop the user1, but it shows "Failed to
get pooled connections". (use postgres-xc1.1).
the detailed content as below:
[wln@localhost pgxc]$ psql -d postgres -p 5300
psql (9.3beta2, server 9.2.4)
Type "help" for help.
postgres=# create user user1 with SUPERUSER;
CREATE ROLE
postgres=# set role user1;
SET
postgres=# create node node100
with(type='datanode',host=localhost,port=7809);
CREATE NODE
postgres=# set role wln;
SET
postgres=# drop user user1;
DROP ROLE
postgres=# create user user1 with SUPERUSER;
CREATE ROLE
postgres=# set role user1;
SET
postgres=# \c postgres
psql (9.3beta2, server 9.2.4)
You are now connected to database "postgres" as user "wln".
postgres=# drop user user1;
ERROR: Failed to get pooled connections
postgres=# select oid, * from pgxc_node;
oid | node_name | node_type | node_port | node_host | nodeis_primary
| nodeis_preferred | node_id
-------+--------------+-----------+-----------+-----------+----------------+------------------+------------
16384 | datanode1 | D | 5302 | localhost | f
| f | 888802358
16385 | datanode2 | D | 5304 | localhost | f
| f | -905831925
16386 | coordinator1 | C | 5300 | localhost | f
| f | 1938253334
16388 | node100 | D | 7809 | localhost | f
| f | 1668042070
(4 rows)
log:
2014-03-01 06:39:18.543 CST 53111016.6fe0 postgres 28640 psql 0 00000DEBUG:
[re]setting xid = 0, old_value = 0
2014-03-01 06:39:18.545 CST 53110fe1.6fd1 postgres 28625 psql 0 00000DEBUG:
Postmaster child: connection to GTM closed
2014-03-01 06:39:25.370 CST 53111016.6fe0 postgres 28640 psql 0 00000DEBUG:
Postmaster child: connection established to GTM with string host=localhost
port=5307 node_name=coordinator1
2014-03-01 06:39:25.371 CST 53111016.6fe0 postgres 28640 psql 0 00000DEBUG:
Assigned new transaction ID from GTM = 10014
2014-03-01 06:39:25.371 CST 53111016.6fe0 postgres 28640 psql 10014
00000DEBUG: Getting snapshot. Current XID = 10014
2014-03-01 06:39:25.372 CST 53111016.6fe0 postgres 28640 psql 10014
00000DEBUG: from GTM: xmin = 10014, xmax = 10014, xcnt = 0, RecGlobXmin =
10014
2014-03-01 06:39:25.394 CST 53110fd8.6fac 28588 0 08006LOG: failed to
connect to Datanode
2014-03-01 06:39:25.394 CST 53110fd8.6fac 28588 0 01000WARNING: can not
connect to node 16388
2014-03-01 06:39:25.394 CST 53111016.6fe0 postgres 28640 psql 10014
53000LOG: failed to acquire connections
2014-03-01 06:39:25.394 CST 53111016.6fe0 postgres 28640 psql 10014
53000STATEMENT: drop user user1;
2014-03-01 06:39:25.394 CST 53111016.6fe0 postgres 28640 psql 10014
53000ERROR: Failed to get pooled connections
2014-03-01 06:39:25.394 CST 53111016.6fe0 postgres 28640 psql 10014
53000STATEMENT: drop user user1;
2014-03-01 06:39:25.394 CST 53111016.6fe0 postgres 28640 psql 10014
00000DEBUG: Record transaction abort 10014
2014-03-01 06:39:25.395 CST 53111016.6fe0 postgres 28640 psql 10014
00000DEBUG: [re]setting xid = 0, old_value = 0
2014-03-01 06:40:16.315 CST 53110fd8.6fba 28602 0 00000DEBUG: Autovacuum
launcher: connection established to GTM with string host=localhost
port=5307 node_name=coordinator1
Thanks
waln
|