Trivadis / pgbasenv

pgBasEnv - PostgreSQL Base Environment Tool
https://github.com/Trivadis/pgbasenv
Apache License 2.0
9 stars 3 forks source link

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

Closed masc-online closed 3 years ago

masc-online commented 3 years ago

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

rolandstirnimann commented 3 years ago

Hello Marian

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

Regards Roland

aychin-tvd commented 3 years ago

Hello,

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

Regards