Closed justbert closed 8 months ago
Thank you for opening this issue, we will look into it.
@xfz11 please take a look
Hi @yonzhan, could you help assign the issue to postgresql team?
Briefly, when user runs a command az postgres flexible-server db show --server-name <SERVER> --database-name postgres
and the database is postgres
, then the command throws error:
Code: InvalidParameterValue
Message: Invalid value given for parameter databaseName. Specify a valid parameter value.
The error seems confused and block the following process depending on the command.
@nasc17 as the last contributor for az postgres flexible-server
@justbert For a workaround, you can create a new database in postgresql server. The postgres
is a special db and it may cause some problems.
@justbert For a workaround, you can create a new database in postgresql server. The
postgres
is a special system db and it may cause some problems.
What do you mean? postgres
is just the default database which can be used, according to the docs:
The postgres database is a default database meant for use by users, utilities and third party applications...
What do you mean?
postgres
is just the default database which can be used, according to the docs:The postgres database is a default database meant for use by users, utilities and third party applications...
Yes, it is. But Azure Postgresql flexible server handle it specially. If you really need to use postgres
database, let's wait for Postgresql team @nasc17 for more update.
What do you mean?
postgres
is just the default database which can be used, according to the docs:The postgres database is a default database meant for use by users, utilities and third party applications...
Yes, it is. But Azure Postgresql flexible server handle it specially. If you really need to use
postgres
database, let's wait for Postgresql team @nasc17 for more update.
I've tried finding this special case in the documentation but cannot find it. Can you point me to the Azure documentation which describes this?
@justbert For a workaround, you can create a new database in postgresql server. The
postgres
is a special db and it may cause some problems.
Thank you @xfz11 for providing this workaround. As of now we are looking into determining the reason as to why the 'postgres' database would require being handled differently.
@justbert For a workaround, you can create a new database in postgresql server. The
postgres
is a special db and it may cause some problems.Thank you @xfz11 for providing this workaround. As of now we are looking into determining the reason as to why the 'postgres' database would require being handled differently.
@nasc17 Sorry if I cause any misunderstanding, I don't mean to let 'postgres' to be handled specially. I just want to say, if user get a database postgres
with the command az postgres flexible-server db show
it throws exception, and if user create a new db and get it, the command will not. And we ask for az postgres flexible-server db show -d postgres
can also return data successfully and not throw exception.
Describe the bug
When attempting to get information about the DB, the
db show
command fails causing thewebapp connection create
command to fail.Suspect the issue is in the
db show
since when a DB name that exists is provided, ainvalid value for parameter databaseName
is returned but when a DB that doesn't exist is passed, adb not found
error is returned.Related command
Errors
Issue script & Debug output
Expected behavior
The DB info is returned and the connection is created.
Environment Summary
Additional context
No response