pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Craig McIlwee <craigm@vt.edu>
Cc: Simon Windsor <simon.windsor@cornfield.me.uk>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Database upgrade Pg11 to Pg12 issues
Date: Wed, 3 Feb 2021 22:29:35 -0500
Message-ID: <20210204032935.GA3887@momjian.us> (raw)
In-Reply-To: <CAGqBcTawGhPj+1OPK4Kni_+b0qRPrEO2fc-tBX0A-2WvjDuKhQ@mail.gmail.com>
References: <8e6d09bd-d992-e6da-b3bd-a32670f94fac@cornfield.me.uk>
	<20210203233235.GA11064@momjian.us>
	<CAGqBcTawGhPj+1OPK4Kni_+b0qRPrEO2fc-tBX0A-2WvjDuKhQ@mail.gmail.com>

On Wed, Feb  3, 2021 at 10:07:03PM -0500, Craig McIlwee wrote:
> 
> (replying to the entire list instead of Bruce only this time...)
> 
> 
> 
>     This doesn't make sense to me.  Since we hard-linked, why would 12 be so
>     much smaller?  If it was symlinks, I could imaging that, but it doesn't
>     use symlinks, just hard links, so it should be similar.  Please look at
>     the size of main/base on both, since that is where your data is.  Maybe
>     11 just has a lot of old WAL that isn't copied.
> 
> 
> 
> It depends on how the directory sizes were measured. "du" won't count the same
> file more than once, so if space was measured using one of the following
> commands:
> 
> du -hs /var/lib/postgresql/
> du -hs /var/lib/postgresql/11/main /var/lib/postgresql/12/main 
> 
> Then you would see a large value for the 11 directory and then the 12 directory
> would only show the files that weren't already counted when measuring the 11
> directory.  Running du on each version's directory separately might give
> results that are more in line with expectations.

Yes, I was assuming the du commands were run separately on each
directory.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee






view thread (4+ messages)

Message-ID: <20210204032935.GA3887@momjian.us>
Permalink:  ../20210204032935.GA3887@momjian.us/
Also on:    postgresql.org/message-id/20210204032935.GA3887@momjian.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: bruce@momjian.us, craigm@vt.edu, simon.windsor@cornfield.me.uk
  Subject: Re: Database upgrade Pg11 to Pg12 issues
  In-Reply-To: <20210204032935.GA3887@momjian.us>
  References: <8e6d09bd-d992-e6da-b3bd-a32670f94fac@cornfield.me.uk> <20210203233235.GA11064@momjian.us> <CAGqBcTawGhPj+1OPK4Kni_+b0qRPrEO2fc-tBX0A-2WvjDuKhQ@mail.gmail.com> <20210204032935.GA3887@momjian.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