Getting error while running the pg_basebackup through PGBOUNCER

时间:2019-04-08 13:32:08

标签: postgresql postgresql-9.2 pgbouncer

We are using PGBOUNCER (connection pool mechanisam). PGBOUNCER uses port 5433.

Postgres database port number is 6433. By using port 5433 PGBOUNCER is connecting to the Postgres database on port 6433.

Now PGBOUNCER is establishing the connections properly, but when I try to run pg_basebackup through port 5433 (PGBOUNCER port), we are receiving the below error. Please guide me.

/opt/postgres/9.2/bin/pg_basebackup -p 5433 -U postgres -P -v -x --format=tar --gzip --compress=1 --pgdata=- -D /opt/rao

pg_basebackup: could not connect to server: ERROR:  Unsupported startup parameter: replication

1 个答案:

答案 0 :(得分:1)

pgBouncer不会说replication protocol,因此您无法通过它运行pg_basebackup

无论如何,通过连接池来说复制协议是没有意义的,因为复制连接往往寿命很长,而且它们的数量并不多。因此,合并没有任何意义。

直接连接到PostgreSQL以运行您的备份。

不用说,但是今天运行PostgreSQL 9.2是一个非常糟糕的主意。

相关问题