You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We have a system setup with pgcat and chose the APT repository as an installation method, just as described in the official docs. For the original installation, this works fine so far, but yields problems with upgrading the package: Each time we've upgraded the package, the service got stopped and the configuration file reset to the package maintainer's version. Effectively, this disabled pgcat and caused issues for all applications using pgcat (rendering a fatal exception).
To Reproduce
Since the APT repository only provides the most recent version of pgcat, the following steps "trick" APT into upgrading to the same version again, simulating an upgrade.
Steps to reproduce the behavior:
echo "deb [trusted=yes] https://apt.postgresml.org jammy main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install pgcat
Modify /etc/pgcat.toml to make some changes to the default configuration
sudo systemctl start pgcat
Trick APT into a fake, new version. Edit /var/lib/apt/lists/apt.postgresml.org_dists_jammy_main_binary-amd64_Packages and increase the version for pgcat temporarily:
Before:
Package: pgcat
Version: 1.1.2-dev4
# ...
After:
Package: pgcat
Version: 1.1.2-dev5
# ...
sudo apt-get upgrade pgcat
⚡️ Check /etc/pgcat.toml: The previous modifications were lost, the file got replaced during the upgrade
⚡️ Check the service status with sudo systemctl status pgcat: pgcat is no longer running.
Expected behavior
Upgrading pgcat through the official APT repository should 1) keep the current user configuration and 2) ensure that pgcat is in the same state as before (i.e., running).
Describe the bug
We have a system setup with pgcat and chose the APT repository as an installation method, just as described in the official docs. For the original installation, this works fine so far, but yields problems with upgrading the package: Each time we've upgraded the package, the service got stopped and the configuration file reset to the package maintainer's version. Effectively, this disabled pgcat and caused issues for all applications using pgcat (rendering a fatal exception).
To Reproduce
Since the APT repository only provides the most recent version of pgcat, the following steps "trick" APT into upgrading to the same version again, simulating an upgrade.
Steps to reproduce the behavior:
echo "deb [trusted=yes] https://apt.postgresml.org jammy main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install pgcat
/etc/pgcat.toml
to make some changes to the default configurationsudo systemctl start pgcat
/var/lib/apt/lists/apt.postgresml.org_dists_jammy_main_binary-amd64_Packages
and increase the version for pgcat temporarily:Before:
sudo apt-get upgrade pgcat
/etc/pgcat.toml
: The previous modifications were lost, the file got replaced during the upgradesudo systemctl status pgcat
: pgcat is no longer running.Expected behavior
Upgrading pgcat through the official APT repository should 1) keep the current user configuration and 2) ensure that pgcat is in the same state as before (i.e., running).
Environment:
The text was updated successfully, but these errors were encountered: