pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Dávid Suchan <david.suchan.ds@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: pg_upgradecluster transfering only a portion of the data
Date: Mon, 27 Feb 2023 11:36:58 -0500
Message-ID: <372205.1677515818@sss.pgh.pa.us> (raw)
In-Reply-To: <fd0d1b0d-3017-5d6c-cc95-18fd664c35ad@aklaver.com>
References: <CAHD9QtYPifFBOULZVPJQ0XuSBc1WwQdQqHUjWZk8UdxRorGAZQ@mail.gmail.com>
	<fd0d1b0d-3017-5d6c-cc95-18fd664c35ad@aklaver.com>

Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 2/27/23 07:44, Dávid Suchan wrote:
>> After a successful prompt finished, I checked the database and the size 
>> went from originally 20gb (in 9.6) to 700~ mb (in 14) while the disk 
>> space available shrank by about 2gb meaning that there is still the 20gb 
>> of data. I tried the entire process twice (since I had created an AWS 

> 1) How did you measure the size of the database clusters?

If it was based on something like "du", perhaps the measurement
was fooled by the fact that most of the data files will be hard-linked
between the old and new clusters.

			regards, tom lane





view thread (13+ messages)  latest in thread

Message-ID: <372205.1677515818@sss.pgh.pa.us>
Permalink:  ../372205.1677515818@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/372205.1677515818@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, david.suchan.ds@gmail.com
  Subject: Re: pg_upgradecluster transfering only a portion of the data
  In-Reply-To: <372205.1677515818@sss.pgh.pa.us>
  References: <CAHD9QtYPifFBOULZVPJQ0XuSBc1WwQdQqHUjWZk8UdxRorGAZQ@mail.gmail.com> <fd0d1b0d-3017-5d6c-cc95-18fd664c35ad@aklaver.com> <372205.1677515818@sss.pgh.pa.us>

* 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