From f0a101f51badd464873a01ee90b84be162540e85 Mon Sep 17 00:00:00 2001 From: Jeronimo Garcia Date: Fri, 28 Nov 2025 13:36:50 +0000 Subject: [PATCH 1/2] Adding port so keyring is not overwritten --- pgcli/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgcli/main.py b/pgcli/main.py index 0b4b64f5..501880df 100644 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -620,7 +620,7 @@ def connect(self, database="", host="", user="", port="", passwd="", dsn="", **k if self.force_passwd_prompt and not passwd: passwd = click.prompt("Password for %s" % user, hide_input=True, show_default=False, type=str) - key = f"{user}@{host}" + key = f"{user}@{host}@{port}" if not passwd and auth.keyring: passwd = auth.keyring_get_password(key) From 21c6bfb81a41576873936592b210ce4a58bc2ab3 Mon Sep 17 00:00:00 2001 From: Jeronimo Garcia Date: Fri, 28 Nov 2025 13:39:53 +0000 Subject: [PATCH 2/2] authors --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS index 771de13f..b40f1d52 100644 --- a/AUTHORS +++ b/AUTHORS @@ -144,6 +144,7 @@ Contributors: * Jay Knight (jay-knight) * fbdb * Charbel Jacquin (charbeljc) + * Jeronimo Garcia (bechampion) Creator: --------