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
feita há 2 anos548 visualizações
1 Resposta
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
ESPECIALISTA
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas