RE: Getting error while running the pg_basebackup through PGBOUNCER

From: Scot Kreienkamp <Scot(dot)Kreienkamp(at)la-z-boy(dot)com>
To: Raghavendra Rao J S V <raghavendrajsv(at)gmail(dot)com>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: RE: Getting error while running the pg_basebackup through PGBOUNCER
Date: 2019-04-08 14:40:36
Message-ID: BN8PR15MB3283AE9F0B332488380361F49A2C0@BN8PR15MB3283.namprd15.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Basically anything that is not written as a sql query should be connected directly to PG. PGBouncer is really only meant for SQL query type connections.

From: Raghavendra Rao J S V [mailto:raghavendrajsv(at)gmail(dot)com]
Sent: Monday, April 8, 2019 10:19 AM
To: Scot Kreienkamp <Scot(dot)Kreienkamp(at)la-z-boy(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Getting error while running the pg_basebackup through PGBOUNCER

ATTENTION: This email was sent to La-Z-Boy from an external source. Be vigilant when opening attachments or clicking links.
Thank you very much for your prompt response.

Could you explain other admin type operations, which are not supported by pgbouncer?

Regards,
Raghavendra Rao.

On Mon, 8 Apr 2019 at 19:16, Scot Kreienkamp <Scot(dot)Kreienkamp(at)la-z-boy(dot)com<mailto:Scot(dot)Kreienkamp(at)la-z-boy(dot)com>> wrote:
Replication and several other admin type operations must connect directly to PG. They are not supported through PGBouncer.

From: Raghavendra Rao J S V [mailto:raghavendrajsv(at)gmail(dot)com<mailto:raghavendrajsv(at)gmail(dot)com>]
Sent: Monday, April 8, 2019 9:21 AM
To: pgsql-general(at)lists(dot)postgresql(dot)org<mailto:pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Getting error while running the pg_basebackup through PGBOUNCER

ATTENTION: This email was sent to La-Z-Boy from an external source. Be vigilant when opening attachments or clicking links.
Hi All,

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 postgres port 6433 database.

Now PGBOUNCER is establishing the connections properly but when I try to run the pg_basebackup through port 5433(PGBOUNCER port) we are receiving 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

--
Regards,
Raghavendra Rao J S V

--
Regards,
Raghavendra Rao J S V
Mobile- 8861161425

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-04-08 14:46:54 Re: Fwd: Postgresql with nextcloud in Windows Server
Previous Message Raghavendra Rao J S V 2019-04-08 14:19:01 Re: Getting error while running the pg_basebackup through PGBOUNCER