Re: [GENERAL] Streaming replication bandwith per table - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: [GENERAL] Streaming replication bandwith per table
Date
Msg-id c5cda816-7593-3f9c-04c5-2f3040b9b88e@2ndquadrant.com
Whole thread Raw
In response to [GENERAL] Streaming replication bandwith per table  ("Maeldron T." <maeldron@gmail.com>)
Responses Re: [GENERAL] Streaming replication bandwith per table
List 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


pgsql-general by date:

Previous
From: "Maeldron T."
Date:
Subject: [GENERAL] Streaming replication bandwith per table
Next
From: Computer Study
Date:
Subject: [GENERAL] Error with DefineSavepoint:Unexpected state STARTED