Re: Streaming replication bandwith per table

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: "Maeldron T(dot)" <maeldron(at)gmail(dot)com>, Forums postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Streaming replication bandwith per table
Date: 2017-06-20 01:06:05
Message-ID: c5cda816-7593-3f9c-04c5-2f3040b9b88e@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6/19/17 20:50, Maeldron T. wrote:
> Streaming replication generates too much traffic to set it up between
> different regions for financial reasons. The streaming replication would
> cost more than every other hosting expense altogether (including every
> the traffic, even though it’s web and huge amount of emails).
>
> Is there a way to see in the log how much bandwidth is used per table?

Not easily. You could play around with pg_xlogdump to see what's going
on in the WAL. But even if you figure it out, there is not much you can
do about it.

Try perhaps logical replication. That would save you the bandwidth for
updating all the indexes at least. It might work for you.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Computer Study 2017-06-20 01:12:35 Error with DefineSavepoint:Unexpected state STARTED
Previous Message Maeldron T. 2017-06-20 00:50:33 Streaming replication bandwith per table