- 论坛徽章:
- 0
|
大家好!
小生,使用pgpool建立一个pgsql的复制方案!
pgsql的版本是postgresql-8.3
pgpool使用的是pgpool-II-2.2
环境我搭建好了
但是当我使用psql -p9999
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
WARNING: You are connected to a server with major version 8.3,
but your psql client is major version 8.1. Some backslash commands,
such as \d, might not work properly.
postgres=# \db
表空间列表
名字 | 所有者 | 位置
------------+-----------+--------
pg_default | postgres |
pg_global | postgres |
(2 行)
两个数据库复制没有问题。但是pgpool报错如下:
2009-04-24 16:47:35 DEBUG: pid 25966: waiting for backend 1 completing the query
2009-04-24 16:47:35 DEBUG: pid 25966: detect_error: kind: T
2009-04-24 16:47:35 DEBUG: pid 25966: detect_error: kind: T
如果使用pgpool创建数据库的时候
createdb -p 9999 lisi
同样pgpool也报错如下:
009-04-24 15:54:16 DEBUG: pid 25952: ReadyForQuery: transaction state: I
2009-04-24 15:54:16 DEBUG: pid 25952: read kind from frontend Q(51)
2009-04-24 15:54:16 LOG: pid 25952: statement: CREATE DATABASE lisi;
2009-04-24 15:54:16 DEBUG: pid 25952: waiting for backend 0 completing the query
2009-04-24 15:54:17 DEBUG: pid 25952: detect_error: kind: C
2009-04-24 15:54:17 DEBUG: pid 25952: detect_error: kind: C
2009-04-24 15:54:17 DEBUG: pid 25952: detect_error: kind: C
2009-04-24 15:54:17 DEBUG: pid 25952: waiting for backend 1 completing the query
2009-04-24 15:54:17 DEBUG: pid 25952: read_kind_from_backend: read kind from 0 th backend C NUM_BACKENDS: 2
2009-04-24 15:54:17 DEBUG: pid 25952: read_kind_from_backend: read kind from 1 th backend C NUM_BACKENDS: 2
2009-04-24 15:54:17 DEBUG: pid 25952: pool_process_query: kind from backend: C
2009-04-24 15:54:17 DEBUG: pid 25952: read_kind_from_backend: read kind from 0 th backend Z NUM_BACKENDS: 2
2009-04-24 15:54:17 DEBUG: pid 25952: read_kind_from_backend: read kind from 1 th backend Z NUM_BACKENDS: 2
2009-04-24 15:54:17 DEBUG: pid 25952: pool_process_query: kind from backend: Z
2009-04-24 15:54:17 DEBUG: pid 25952: pool_read_message_length: slot: 0 length: 5
2009-04-24 15:54:17 DEBUG: pid 25952: pool_read_message_length: slot: 1 length: 5
2009-04-24 15:54:17 DEBUG: pid 25952: ReadyForQuery: message length: 5
[ 本帖最后由 zmh5211314 于 2009-4-24 16:53 编辑 ] |
|