Trivadis / pgbasenv

pgBasEnv - PostgreSQL Base Environment Tool

Home Page:https://github.com/Trivadis/pgbasenv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Aliases for switching environment are not set, if the alias start with 'db'

masc-online opened this issue · comments

Hello,

When setting up pgBasEnv in a new environment, I noticed that the aliases for the clusters for changing the environment were not set, although the informations in $PGBASENV_BASE/etc/pgclustertab were correct and the display of the pgup command also displayed the correct data.

It was possible to define and use the aliases manually, but they were deleted again after usage/change of the environment.

After some tests and comparisons with other environments, I noticed that the aliases were not set (or maybe set - unset) if their name began with "db", e.g. "db123i01". If other alias names were used, they were processed correctly. For example "pg123i01" or even "DB123I01" were processed normally.

Unfortunately I couldn't find the part of the script that causes the problem, but maybe the problem description helps a bit.

Greetings, Marian

pgbasenv-alias-handling

Hello Marian

Thank you for reporting this issue. We can reporduce it and will fix it soon.

Regards
Roland

Hello,

The bug was fixed now. You can download the new version.

Regards