What is the aurora_server_id (mysql) variable alternative for postgresql?

0

Looking for a way to get the database instance name for the current session in postgresql, just like the variable "aurora_server_id" did in mysql. When running commands, there needs to be a way to verify that we are connected to the host we think we are connected to. "inet_server_addr" gives IP but we want to know the instance name.

AWS
已提问 2 年前548 查看次数
1 回答
1

Hello,

Thanks for reaching out to AWS re:Post.

First of all, I would like to apologize for the delay in response to this post. I saw the query just now and started diving deeper on it.

Please note that Aurora Postgresql does not have an equivalent to "aurora_server_id". That being said-> You can use the below command to get details about your connection

SELECT * FROM aurora_replica_status()

I sincerely hope this helps in your project - Have a great rest of the day!

AWS
专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则