RE: pg_upgrade - Mailing list pgsql-bugs

From Загороднев Роман Евгеньевич
Subject RE: pg_upgrade
Date
Msg-id 4f72335fc4f348fe833847af59e0ad55@mexmbx01.bops.local
Whole thread Raw
In response to Re: pg_upgrade  (Julien Rouhaud <rjuju123@gmail.com>)
List pgsql-bugs
FS - NTFS.
Used different version (10, 12) and result always the same. In log I see that links was created. But pg_upgrade copies
alldatabases. In destination data folder I see files, not links, and if no free space on disk for copy all data, error
appearwhile 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=MSDN)
if -k / --link option is used. The page mentions that only ntfs filesystem is supported, is this what you're using?
Canyou show the full output of pg_upgrade in verbose mode?
 

Attachment

pgsql-bugs by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: pg_upgrade
Next
From: Julien Rouhaud
Date:
Subject: Re: pg_upgrade