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 年前檢視次數 549 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南