From c932f2ec18372712788081fde8b131469fae80d7 Mon Sep 17 00:00:00 2001 From: Marc Bowes <15209+marcbowes@users.noreply.github.com> Date: Sat, 21 Jun 2025 21:55:02 -0700 Subject: [PATCH 1/2] Fix install link --- .github/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/README.md b/.github/README.md index 83cc1091f468c..2a06f9a525486 100644 --- a/.github/README.md +++ b/.github/README.md @@ -7,7 +7,7 @@ A PostgreSQL command-line client with built-in AWS DSQL authentication support. Install `pdsql` with a single command: ```bash -curl -sSL https://raw.githubusercontent.com/marcbowes/postgres/main/scripts/install.sh | sh +curl -sSL https://raw.githubusercontent.com/marcbowes/postgres/refs/heads/master/scripts/install.sh | sh ``` This installer automatically detects your platform (macOS/Linux) and architecture, downloads the appropriate package, and installs `pdsql` to your local environment. @@ -176,7 +176,7 @@ pdsql --help To update to the latest version, simply run the installation command again: ```bash -curl -sSL https://raw.githubusercontent.com/marcbowes/postgres/main/scripts/install.sh | sh +curl -sSL https://raw.githubusercontent.com/marcbowes/postgres/refs/heads/master/scripts/install.sh | sh ``` ## 🏗️ Building from Source From e4a5eb921b8356fd96548cb9ff3c21ca271b9e28 Mon Sep 17 00:00:00 2001 From: Marc Bowes <15209+marcbowes@users.noreply.github.com> Date: Sat, 21 Jun 2025 21:55:09 -0700 Subject: [PATCH 2/2] Default db to postgres --- src/interfaces/libpq/fe-connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 702b94c48db59..682b3b064c406 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -223,7 +223,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = { "Connect-timeout", "", 10, /* strlen(INT32_MAX) == 10 */ offsetof(struct pg_conn, connect_timeout)}, - {"dbname", "PGDATABASE", NULL, NULL, + {"dbname", "PGDATABASE", "postgres", NULL, "Database-Name", "", 20, offsetof(struct pg_conn, dbName)},