pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Загороднев Роман Евгеньевич <re.zagorodnev@npff.ru>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: RE: pg_upgrade
Date: Wed, 25 Dec 2019 15:26:51 +0000
Message-ID: <4f72335fc4f348fe833847af59e0ad55@mexmbx01.bops.local> (raw)
In-Reply-To: <CAOBaU_Y+yvzqP1nCD=r+D_yQ0m1TVU6ixrwOfdC1P1H_CkqhBQ@mail.gmail.com>
References: <d1734181294e444c8afbb4ad90a9d2c3@mexmbx01.bops.local>
	<CAOBaU_Y+yvzqP1nCD=r+D_yQ0m1TVU6ixrwOfdC1P1H_CkqhBQ@mail.gmail.com>

FS - NTFS.
Used different version (10, 12) and result always the same. In log I see that links was created. But pg_upgrade copies all databases. In destination data folder I see files, not links, and if no free space on disk for copy all data, error appear while upgrade.

-----Original Message-----
From: Julien Rouhaud [mailto:rjuju123@gmail.com] 
Sent: Wednesday, December 25, 2019 5:31 PM
To: Загороднев Роман Евгеньевич <re.zagorodnev@npff.ru>
Cc: pgsql-bugs@postgresql.org
Subject: Re: pg_upgrade

On Wed, Dec 25, 2019 at 3:17 PM  <re.zagorodnev@npff.ru> wrote:
>
> Hi.
>
> On windows pg_upgrade.exe ignores –k (--link) options and try to copy all data.
>
> Pg_upgrade version 10.10.

This should not be happening.  On windows pg_upgrade uses
CreateHardLinkA()
(https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createhardlinka?redirectedfrom...)
if -k / --link option is used. The page mentions that only ntfs filesystem is supported, is this what you're using?  Can you show the full output of pg_upgrade in verbose mode?


Attachments:

  pg_upgrade_internal.log (application/octet-stream, 561.3K) download

view thread (16+ messages)  latest in thread

Message-ID: <4f72335fc4f348fe833847af59e0ad55@mexmbx01.bops.local>
Permalink:  ../4f72335fc4f348fe833847af59e0ad55@mexmbx01.bops.local/
Also on:    postgresql.org/message-id/4f72335fc4f348fe833847af59e0ad55@mexmbx01.bops.local

 · 

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-bugs@postgresql.org
  Cc: re.zagorodnev@npff.ru, rjuju123@gmail.com
  Subject: Re: pg_upgrade
  In-Reply-To: <4f72335fc4f348fe833847af59e0ad55@mexmbx01.bops.local>
  References: <d1734181294e444c8afbb4ad90a9d2c3@mexmbx01.bops.local> <CAOBaU_Y+yvzqP1nCD=r+D_yQ0m1TVU6ixrwOfdC1P1H_CkqhBQ@mail.gmail.com> <4f72335fc4f348fe833847af59e0ad55@mexmbx01.bops.local>

* 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