Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Support `psql` as part of the server host

Open
#48 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
github-actions, postgresql, typescript
Domain
database, devops

Research direction

Start in src/Utils/ActionInputs.ts at the linked logic that removes psql and quotes from the connection string. Reproduce the issue with a host such as caf-named-db-psql.postgres.database.azure.com, then verify that the action preserves psql when it is part of the host while continuing to parse the connection string correctly.

Written by the indexing model from the issue text.

Description

According to the CAF (Cloud Adoption Framework) the official abbreviation for a PostgreSQL database is psql.

But the current implementation blindly replaces 'psql' with '', which breaks the ability to use this action with such a named DB.

Input:

      - uses: azure/postgresql@v1
        with:
          connection-string: host=caf-named-db-psql.postgres.database.azure.com ...

Output:

psql: error: could not translate host name "caf-named-db-.postgres.database.azure.com" to address: Name or service not known
Error: Error occurred while running action:
Error: The process '/usr/bin/psql' failed with exit code 2

Personal workaround:

The code currently not only replaces 'psql' with '', it also (as a second step) replaces '"' with ''. So a functional workaround that I use is adding a rouge " like this:

      - uses: azure/postgresql@v1
        with:
          connection-string: host=caf-named-db-p"sql.postgres.database.azure.com ...

But this is far from ideal 😂

Dominant language
TypeScript
Stars
25
Forks
22
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/postgresql

All issues in Azure/postgresql

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.