RE: pg_upgrade

Загороднев Роман Евгень евич <[email protected]> Wed, 25 Dec 2019 15:26:51 +0000
Newsgroups gmane.comp.db.postgresql.bugs
Message-ID <[email protected]>
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:[email protected]] 
Sent: Wednesday, December 25, 2019 5:31 PM
To: Загороднев Роман Евгеньевич <[email protected]>
Cc: [email protected]
Subject: Re: pg_upgrade

On Wed, Dec 25, 2019 at 3:17 PM  <[email protected]> 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?  Can you show the full output of pg_upgrade in verbose mode?
pg_upgrade_internal.log (application/octet-stream, 561.3 KB) - not displayed