Re: Corrupted Postgresql Microsoft Binaries

From: Hillary Masha <hillarymasha(at)geotab(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Thomas Kellerer <shammat(at)gmx(dot)net>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Corrupted Postgresql Microsoft Binaries
Date: 2022-08-29 14:50:35
Message-ID: CA+RCjax7d3djH6YMRb9bnHzmtz6hFhexq9YsYbtYdeOVUwh5+Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

After further investigation, it was determined that the issue was with the
length of the path of some subdirectories in the zip file for the new
binaries. Windows has a max path length of 260 characters, hence the issue
with unzipping.
Postgres V 14.3 had a max file path length of 226
[image: image.png]
Postgres V 14.5 has a max file path length of 321
[image: image.png]

My team uses powershell v5 in our code to unzip these files, we needed to
enable 'Long Path' for the files to be successfully unzipped. This was
added as an opt-in by Microsoft for Windows 10 (
https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell
).
Note that the files were successfully unzipped in Powershell v7 without
making any changes.

On Wed, Aug 24, 2022 at 5:36 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:

> On 8/24/22 2:23 PM, Thomas Kellerer wrote:
> > Hillary Masha schrieb am 23.08.2022 um 20:58:
> >> I downloaded the microsoft postgresql binaries for versions 14.5,
> >> 13.8, 12.12, 11.17, 10.22 from
> >> https://www.enterprisedb.com/download-postgresql-binaries and found
> >> that there was an error with opening the zip files. Does anyone else
> >> use these files and found that they ran into the same issue? If so,
> >> where else can I get the files?
> >
> > I have no problems unzipping them on Windows 10 using TotalCommander
> > or the Info-ZIP "unzip" tool
> >
>
> I did some searching to see if there was a fix and the results where:
>
> From MS the usual:
> a) It's your problem
> b) Upgrade
> c) Reboot.
>
> From others:
>
> a) The builtin unzip program is buggy don't use.
> b) Use just about any other program.
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2022-08-29 15:09:12 Re: Corrupted Postgresql Microsoft Binaries
Previous Message Вадим Самохин 2022-08-29 11:29:33 questions about snapshot building logic