pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
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 08:56:21 -0800
Message-ID: <12a7a897-ff85-5280-7721-5e6d0e7cb30b@aklaver.com> (raw)
In-Reply-To: <373111.1677516529@sss.pgh.pa.us>
References: <CAHD9QtYPifFBOULZVPJQ0XuSBc1WwQdQqHUjWZk8UdxRorGAZQ@mail.gmail.com>
	<fd0d1b0d-3017-5d6c-cc95-18fd664c35ad@aklaver.com>
	<372205.1677515818@sss.pgh.pa.us>
	<1488b8f2-fe98-3be2-0d27-4c52734f15af@aklaver.com>
	<373111.1677516529@sss.pgh.pa.us>

On 2/27/23 08:48, Tom Lane wrote:
> Adrian Klaver <adrian.klaver@aklaver.com> writes:
>> On 2/27/23 08:36, Tom Lane wrote:
>>> 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.
> 
>> Does that happen without the --link option?
> 
> No, but the OP didn't mention whether he used that, and even if he
> didn't say it explicitly the pg_upgradecluster wrapper might've
> supplied it.

Alright the OP's command was:

pg_upgradecluster 9.6 main

pg_upgradecluster needs the --link(-k) option to use link instead of copy.

> 
> 			regards, tom lane

-- 
Adrian Klaver
adrian.klaver@aklaver.com






view thread (13+ messages)  latest in thread

Message-ID: <12a7a897-ff85-5280-7721-5e6d0e7cb30b@aklaver.com>
Permalink:  ../12a7a897-ff85-5280-7721-5e6d0e7cb30b@aklaver.com/
Also on:    postgresql.org/message-id/12a7a897-ff85-5280-7721-5e6d0e7cb30b@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, tgl@sss.pgh.pa.us, david.suchan.ds@gmail.com
  Subject: Re: pg_upgradecluster transfering only a portion of the data
  In-Reply-To: <12a7a897-ff85-5280-7721-5e6d0e7cb30b@aklaver.com>
  References: <CAHD9QtYPifFBOULZVPJQ0XuSBc1WwQdQqHUjWZk8UdxRorGAZQ@mail.gmail.com> <fd0d1b0d-3017-5d6c-cc95-18fd664c35ad@aklaver.com> <372205.1677515818@sss.pgh.pa.us> <1488b8f2-fe98-3be2-0d27-4c52734f15af@aklaver.com> <373111.1677516529@sss.pgh.pa.us> <12a7a897-ff85-5280-7721-5e6d0e7cb30b@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