-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading PostgreSQL 14.5 is not reflected. #82335
Comments
If running |
Thanks. When I run |
I looked into this and it is because the Postgres Installer that EnterpriseDB packages doesn't set the Version information in the registry / control panel correctly:
It reported 14.0 even for the 14.1 I had previously installed. They just don't set the minor versions. I fear it's an issue that would have to be communicated to them as they publish the Windows installer. |
@jantari I suspect you are correct. If they aren't updating the registry entry, we don't have another reliable way to determine what upgrades have been applied or which would apply in a |
@denelon allowing to specify a file path and matching against the ProductVersion in that files' metadata could be an option.
ansibles |
Recently, PostgreSQL 15 was released, so I upgraded and uninstalled PostgreSQL 14.5. PS C:\> Get-ChildItem "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | Where { $_.GetValue('DisplayName') -like "*post*" }
Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Name Property
---- --------
PostgreSQL 15 DisplayVersion : 15
Publisher : PostgreSQL Global Development Group
DisplayName : PostgreSQL 15
UrlInfoAbout : http://www.postgresql.org/
HelpLink : http://www.postgresql.org/docs
Comments : The PostgreSQL RDBMS, version 15, packaged by EnterpriseDB
Contact :
VersionMajor : 15
MajorVersion : 15
VersionMinor : 0
MinorVersion : 0
UninstallString : "C:\Program Files\PostgreSQL\15\uninstall-postgresql.exe"
InstallLocation : C:\Program Files\PostgreSQL\15
NoModify : 1
NoRepair : 1
EstimatedSize : 953141
InstallDate : 20221016
PS C:\> |
i think for postgresql, different major version should have their own
it would then be
|
@kdpuvvadi no, if you want to install a specific older version then use |
What i'm saying here is a suggestion mate to the maintainers like @denelon |
Got the same issue with the following packages:
|
This looks like a case where the installer doesn't report the version to the registry that was upgraded. |
WinGet looks at the "displayVersion" key used to drive the Windows Apps & Features version. Note, it's the value below the "displayName". |
Thanks. The manual workaround worked. Changing the values in "displayVersion" to corresponding versions, stopped the problem for now. |
I reported it here, got an answer: |
Hello @dmdragon, This issue has been identified as requiring a fix from a third party or external repository. Since there has been no recent activity on this issue, it will be automatically closed. Template: msftbot/noRecentActivity/areaExternal |
1 similar comment
Hello @dmdragon, This issue has been identified as requiring a fix from a third party or external repository. Since there has been no recent activity on this issue, it will be automatically closed. Template: msftbot/noRecentActivity/areaExternal |
Brief description of your issue
Run the PostgreSQL 14 upgrade, the 14.5 installer will be run and the version will be 14.5, but then run the winget upgrade, get PostgreSQL 14.5 again.
Steps to reproduce
winget upgrade
winget upgrade --id PostgreSQL.PostgreSQL
winget upgrade
, also find Postgres 14 version 14.5.Expected behavior
After the installation of PostgreSQL 14.5 is complete, when run
winget upgrade
, PostgreSQL does not come up.Actual behavior
After the installation of PostgreSQL 14.5 is complete, when run
winget upgrade
, PostgreSQL come up.Environment
The text was updated successfully, but these errors were encountered: