pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: senor <frio_cervesa@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pg_upgrade --jobs
Date: Sun, 7 Apr 2019 12:35:56 -0700
Message-ID: <6ea43675-dd00-cd26-11a8-0444f575f6c9@aklaver.com> (raw)
In-Reply-To: <BYAPR01MB3701DCD876A3BB05640A8092F7530@BYAPR01MB3701.prod.exchangelabs.com>
References: <BYAPR01MB370142138620DE0D3DD6120BF7520@BYAPR01MB3701.prod.exchangelabs.com>
	<1c0469fb-1878-35ac-8468-78ce47299638@aklaver.com>
	<BYAPR01MB370161A441B39513EF47FE5AF7520@BYAPR01MB3701.prod.exchangelabs.com>
	<16144.1554588125@sss.pgh.pa.us>
	<BYAPR01MB3701D38CD99FE2E23A2FE17FF7520@BYAPR01MB3701.prod.exchangelabs.com>
	<20138.1554594658@sss.pgh.pa.us>
	<41c4d2a3-0a0a-bec3-7609-ec232b95f27b@gmail.com>
	<BYAPR01MB37015302FC3DE93AFADA2EB7F7530@BYAPR01MB3701.prod.exchangelabs.com>
	<9465052c-66c8-d425-135e-94465b5b3114@aklaver.com>
	<BYAPR01MB3701DCD876A3BB05640A8092F7530@BYAPR01MB3701.prod.exchangelabs.com>

On 4/7/19 12:05 PM, senor wrote:
> Thank you Adrian. I'm not sure if I can provide as much as you'd need for a definite answer but I'll give you what I have.
> 
> The original scheduled downtime for one installation was 24 hours. By 21 hours it had not completed the pg_dump schema-only so it was returned to operation.

So this is more then one cluster?

I am assuming the below was repeated at different sites?

> The amount of data per table is widely varied. Some daily tables are 100-200GB and thousands of reports tables with stats are much smaller. I'm not connected to check now but I'd guess 1GB max. We chose to use the --link option partly because some servers do not have the disk space to copy. The time necessary to copy 1-2TB was also going to be an issue.
> The vast majority of activity is on current day inserts and stats reports of that data. All previous days and existing reports are read only.
> As is all too common, the DB usage grew with no redesign so it is a single database on a single machine with a single schema.
> I get the impression there may be an option of getting the schema dump while in service but possibly not in this scenario. Plan B is to drop a lot of tables and deal with imports later.

I take the above to mean that a lot of the tables are cruft, correct?

> 
> I appreciate the help.
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (15+ messages)  latest in thread

Message-ID: <6ea43675-dd00-cd26-11a8-0444f575f6c9@aklaver.com>
Permalink:  ../6ea43675-dd00-cd26-11a8-0444f575f6c9@aklaver.com/
Also on:    postgresql.org/message-id/6ea43675-dd00-cd26-11a8-0444f575f6c9@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, frio_cervesa@hotmail.com
  Subject: Re: pg_upgrade --jobs
  In-Reply-To: <6ea43675-dd00-cd26-11a8-0444f575f6c9@aklaver.com>
  References: <BYAPR01MB370142138620DE0D3DD6120BF7520@BYAPR01MB3701.prod.exchangelabs.com> <1c0469fb-1878-35ac-8468-78ce47299638@aklaver.com> <BYAPR01MB370161A441B39513EF47FE5AF7520@BYAPR01MB3701.prod.exchangelabs.com> <16144.1554588125@sss.pgh.pa.us> <BYAPR01MB3701D38CD99FE2E23A2FE17FF7520@BYAPR01MB3701.prod.exchangelabs.com> <20138.1554594658@sss.pgh.pa.us> <41c4d2a3-0a0a-bec3-7609-ec232b95f27b@gmail.com> <BYAPR01MB37015302FC3DE93AFADA2EB7F7530@BYAPR01MB3701.prod.exchangelabs.com> <9465052c-66c8-d425-135e-94465b5b3114@aklaver.com> <BYAPR01MB3701DCD876A3BB05640A8092F7530@BYAPR01MB3701.prod.exchangelabs.com> <6ea43675-dd00-cd26-11a8-0444f575f6c9@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox